Warnings on vc14 were eliminated
[occt.git] / src / Transfer / Transfer_TransientListBinder.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
b311480e 14
42cf5bc1 15#include <Standard_OutOfRange.hxx>
16#include <Standard_Transient.hxx>
17#include <Standard_Type.hxx>
18#include <Standard_TypeMismatch.hxx>
19#include <Transfer_TransientListBinder.hxx>
20
92efcf78 21IMPLEMENT_STANDARD_RTTIEXT(Transfer_TransientListBinder,Transfer_Binder)
22
42cf5bc1 23//#include <TColStd.hxx>
7fd59977 24//=======================================================================
25//function : Constructor
26//purpose :
27//=======================================================================
7fd59977 28Transfer_TransientListBinder::Transfer_TransientListBinder ()
29{ theres = new TColStd_HSequenceOfTransient(); }
30
31//=======================================================================
32//function : Constructor
33//purpose :
34//=======================================================================
35
36Transfer_TransientListBinder::Transfer_TransientListBinder
37 (const Handle(TColStd_HSequenceOfTransient)& list)
38{ theres = list; }
39
40//=======================================================================
41//function : IsMultiple
42//purpose :
43//=======================================================================
44
45Standard_Boolean Transfer_TransientListBinder::IsMultiple () const
46{ return (NbTransients() > 1); }
47
48//=======================================================================
49//function : ResultType
50//purpose :
51//=======================================================================
52
53Handle(Standard_Type) Transfer_TransientListBinder::ResultType () const
54{ return STANDARD_TYPE(Transfer_TransientListBinder); }
55
56//=======================================================================
57//function : ResultTypeName
58//purpose :
59//=======================================================================
60
61Standard_CString Transfer_TransientListBinder::ResultTypeName () const
62{ return "list(Standard_Transient)"; }
63
64
65//=======================================================================
66//function : AddResult
67//purpose :
68//=======================================================================
69
70void Transfer_TransientListBinder::AddResult (const Handle(Standard_Transient)& Transient)
71{ theres->Append(Transient); }
72
73//=======================================================================
74//function : Result
75//purpose :
76//=======================================================================
77
78Handle(TColStd_HSequenceOfTransient) Transfer_TransientListBinder::Result () const
79{ return theres; }
80
81//=======================================================================
82//function : SetResult
83//purpose :
84//=======================================================================
85
86void Transfer_TransientListBinder::SetResult
87 (const Standard_Integer num, const Handle(Standard_Transient)& Transient)
88{ theres->SetValue(num,Transient); }
89
90//=======================================================================
91//function : NbTransients
92//purpose :
93//=======================================================================
94
95Standard_Integer Transfer_TransientListBinder::NbTransients () const
96{ return theres->Length(); }
97
98//=======================================================================
99//function : Transient
100//purpose :
101//=======================================================================
102
103const Handle(Standard_Transient)&
104 Transfer_TransientListBinder::Transient (const Standard_Integer num) const
105{ return theres->Value(num); }
106