1 // File : SALOMEDS_SequenceOfIntegerAttribute.hxx
2 // Created : Fri Jul 05 12:59:44 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
11 #define _SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
16 #ifndef _Handle_SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
17 #include <Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx>
20 #ifndef _Handle_TColStd_HSequenceOfInteger_HeaderFile
21 #include <Handle_TColStd_HSequenceOfInteger.hxx>
23 #ifndef _TDF_Attribute_HeaderFile
24 #include <TDF_Attribute.hxx>
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
29 #ifndef _Handle_TDF_Attribute_HeaderFile
30 #include <Handle_TDF_Attribute.hxx>
32 #ifndef _Handle_TDF_RelocationTable_HeaderFile
33 #include <Handle_TDF_RelocationTable.hxx>
35 class TColStd_HSequenceOfInteger;
39 class TDF_RelocationTable;
42 class SALOMEDS_SequenceOfIntegerAttribute : public TDF_Attribute {
46 void* operator new(size_t,void* anAddress)
50 void* operator new(size_t size)
52 return Standard::Allocate(size);
54 void operator delete(void *anAddress)
56 if (anAddress) Standard::Free((Standard_Address&)anAddress);
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();
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;
102 Handle_TColStd_HSequenceOfInteger myValue;
111 // other Inline functions and methods (like "C++: function call" methods)