summaryrefslogtreecommitdiff
path: root/src/PDataStd/PDataStd_Variable.cxx
blob: 764cbac250b7f8909adec374dd150d9b5a393031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// File:	PDataStd_Variable.cxx
// Created:	Wed Dec 10 11:26:08 1997
// Author:	Denis PASCAL
//		<dp@dingox.paris1.matra-dtv.fr>

#include <PDataStd_Variable.ixx>

//=======================================================================
//function : PDataStd_Variable
//purpose  : 
//=======================================================================

PDataStd_Variable::PDataStd_Variable()
{
}

//=======================================================================
//function : PDataStd_Variable
//purpose  : 
//=======================================================================

PDataStd_Variable::PDataStd_Variable(const Standard_Boolean constant)
{
  Constant(constant);
}

//=======================================================================
//function : Constant
//purpose  : 
//=======================================================================

void PDataStd_Variable::Constant(const Standard_Boolean status) 
{
  isConstant = status;
}
//=======================================================================
//function : Constant
//purpose  : 
//=======================================================================
Standard_Boolean PDataStd_Variable::Constant() const
{
  return isConstant;
}
//=======================================================================
//function : Unit
//purpose  : 
//=======================================================================

void PDataStd_Variable::Unit(const Handle(PCollection_HAsciiString)& unit) 
{
  myUnit = unit;
}
//=======================================================================
//function : Unit
//purpose  : 
//=======================================================================
Handle(PCollection_HAsciiString) PDataStd_Variable::Unit() const
{
  return myUnit;
}