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