summaryrefslogtreecommitdiff
path: root/src/Transfer/Transfer_TransientListBinder.cxx
blob: a8616558706f3cdb9709495e6f6b5acf2db9367d (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include  <Transfer_TransientListBinder.ixx>
//#include  <TColStd.hxx>
  
//=======================================================================
//function : Constructor
//purpose  : 
//=======================================================================

Transfer_TransientListBinder::Transfer_TransientListBinder  ()
{  theres = new TColStd_HSequenceOfTransient();  }

//=======================================================================
//function : Constructor
//purpose  : 
//=======================================================================

Transfer_TransientListBinder::Transfer_TransientListBinder
  (const Handle(TColStd_HSequenceOfTransient)& list)
{  theres = list;  }

//=======================================================================
//function : IsMultiple
//purpose  : 
//=======================================================================

Standard_Boolean  Transfer_TransientListBinder::IsMultiple () const
{  return (NbTransients() > 1);  }

//=======================================================================
//function : ResultType
//purpose  : 
//=======================================================================

Handle(Standard_Type)  Transfer_TransientListBinder::ResultType () const
{  return STANDARD_TYPE(Transfer_TransientListBinder);  }

//=======================================================================
//function : ResultTypeName
//purpose  : 
//=======================================================================

Standard_CString  Transfer_TransientListBinder::ResultTypeName () const
{  return "list(Standard_Transient)";  }


//=======================================================================
//function : AddResult
//purpose  : 
//=======================================================================

void  Transfer_TransientListBinder::AddResult (const Handle(Standard_Transient)& Transient)
{  theres->Append(Transient);  }

//=======================================================================
//function : Result
//purpose  : 
//=======================================================================

Handle(TColStd_HSequenceOfTransient) Transfer_TransientListBinder::Result () const
{  return theres;  }

//=======================================================================
//function : SetResult
//purpose  : 
//=======================================================================

void  Transfer_TransientListBinder::SetResult
  (const Standard_Integer num, const Handle(Standard_Transient)& Transient)
{  theres->SetValue(num,Transient);  }

//=======================================================================
//function : NbTransients
//purpose  : 
//=======================================================================

Standard_Integer  Transfer_TransientListBinder::NbTransients () const
{  return theres->Length();  }

//=======================================================================
//function : Transient
//purpose  : 
//=======================================================================

const Handle(Standard_Transient)&
  Transfer_TransientListBinder::Transient (const Standard_Integer num) const
{  return theres->Value(num);  }