Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_AttributeSequenceOfInteger.hxx
1 //  File   : SALOMEDSImpl_AttributeSequenceOfInteger.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef _SALOMEDSImpl_AttributeSequenceOfInteger_HeaderFile
6 #define _SALOMEDSImpl_AttributeSequenceOfInteger_HeaderFile
7
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TColStd_HSequenceOfInteger.hxx>
11 #include <TDF_Label.hxx>       
12 #include <TCollection_AsciiString.hxx>
13 #include "SALOMEDSImpl_GenericAttribute.hxx"
14
15 class Standard_GUID;
16 class Handle(TDF_Attribute);
17 class Handle(TDF_RelocationTable);
18
19
20 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeSequenceOfInteger, SALOMEDSImpl_GenericAttribute )
21
22 class SALOMEDSImpl_AttributeSequenceOfInteger : public SALOMEDSImpl_GenericAttribute 
23 {
24
25 public:
26
27 Standard_EXPORT virtual TCollection_AsciiString Save();
28 Standard_EXPORT virtual void Load(const TCollection_AsciiString&);
29  
30 Standard_EXPORT static const Standard_GUID& GetID() ;
31 Standard_EXPORT static  Handle_SALOMEDSImpl_AttributeSequenceOfInteger Set(const TDF_Label& label) ;
32 Standard_EXPORT SALOMEDSImpl_AttributeSequenceOfInteger();
33 Standard_EXPORT   void Assign(const Handle(TColStd_HSequenceOfInteger)& other) ;
34 Standard_EXPORT   void ChangeValue(const Standard_Integer Index,const Standard_Integer Value) ;
35 Standard_EXPORT   void Add(const Standard_Integer value) ;
36 Standard_EXPORT   Standard_Integer Value(const Standard_Integer Index) ;
37 Standard_EXPORT   void Remove(const Standard_Integer Index) ;
38 Standard_EXPORT   Standard_Integer Length() ;
39 Standard_EXPORT  const Standard_GUID& ID() const;
40 Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
41 Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
42 Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
43 Standard_EXPORT ~SALOMEDSImpl_AttributeSequenceOfInteger() {}
44
45 private: 
46
47 Handle_TColStd_HSequenceOfInteger myValue;
48
49 public:
50   DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeSequenceOfInteger )
51
52 };
53
54 #endif