Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_SequenceOfIntegerAttribute.hxx
1 //  File      : SALOMEDS_SequenceOfIntegerAttribute.hxx
2 //  Created   : Fri Jul 05 12:59:44 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef _SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
11 #define _SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
17 #include <Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx>
18 #endif
19
20 #ifndef _Handle_TColStd_HSequenceOfInteger_HeaderFile
21 #include <Handle_TColStd_HSequenceOfInteger.hxx>
22 #endif
23 #ifndef _TDF_Attribute_HeaderFile
24 #include <TDF_Attribute.hxx>
25 #endif
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
28 #endif
29 #ifndef _Handle_TDF_Attribute_HeaderFile
30 #include <Handle_TDF_Attribute.hxx>
31 #endif
32 #ifndef _Handle_TDF_RelocationTable_HeaderFile
33 #include <Handle_TDF_RelocationTable.hxx>
34 #endif
35 class TColStd_HSequenceOfInteger;
36 class Standard_GUID;
37 class TDF_Label;
38 class TDF_Attribute;
39 class TDF_RelocationTable;
40
41
42 class SALOMEDS_SequenceOfIntegerAttribute : public TDF_Attribute {
43
44 public:
45
46     void* operator new(size_t,void* anAddress) 
47       {
48         return anAddress;
49       }
50     void* operator new(size_t size) 
51       { 
52         return Standard::Allocate(size); 
53       }
54     void  operator delete(void *anAddress) 
55       { 
56         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
57       }
58  // Methods PUBLIC
59  // 
60 Standard_EXPORT static const Standard_GUID& GetID() ;
61 Standard_EXPORT static  Handle_SALOMEDS_SequenceOfIntegerAttribute Set(const TDF_Label& label) ;
62 Standard_EXPORT SALOMEDS_SequenceOfIntegerAttribute();
63 Standard_EXPORT   void Assign(const Handle(TColStd_HSequenceOfInteger)& other) ;
64 Standard_EXPORT   void ChangeValue(const Standard_Integer Index,const Standard_Integer Value) ;
65 Standard_EXPORT   void Add(const Standard_Integer value) ;
66 Standard_EXPORT   Standard_Integer Value(const Standard_Integer Index) ;
67 Standard_EXPORT   void Remove(const Standard_Integer Index) ;
68 Standard_EXPORT   Standard_Integer Length() ;
69 Standard_EXPORT  const Standard_GUID& ID() const;
70 Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
71 Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
72 Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
73 Standard_EXPORT ~SALOMEDS_SequenceOfIntegerAttribute();
74
75
76
77
78  // Type management
79  //
80  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_SequenceOfIntegerAttribute_Type_();
81  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
82  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
83
84 protected:
85
86  // Methods PROTECTED
87  // 
88
89
90  // Fields PROTECTED
91  //
92
93
94 private: 
95
96  // Methods PRIVATE
97  // 
98
99
100  // Fields PRIVATE
101  //
102 Handle_TColStd_HSequenceOfInteger myValue;
103
104
105 };
106
107
108
109
110
111 // other Inline functions and methods (like "C++: function call" methods)
112 //
113
114
115 #endif