]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDSImpl/SALOMEDSImpl_AttributeFlags.hxx
Salome HOME
a865bb2d32b70640b6d58fcdff44e1aece9f7a43
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_AttributeFlags.hxx
1 //  File   : SALOMEDSImpl_AttributeFlags.hxx
2 //  Author : Sergey LITONIN
3 //  Module : SALOME
4
5 #ifndef SALOMEDSImpl_AttributeFlags_HeaderFile
6 #define SALOMEDSImpl_AttributeFlags_HeaderFile
7
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TDF_Label.hxx>       
11 #include "SALOMEDSImpl_GenericAttribute.hxx"
12
13 class Standard_GUID;
14 class Handle(TDF_Attribute);
15 class Handle(TDF_RelocationTable);
16
17
18 /*
19   Class       : SALOMEDSImpl_AttributeFlags
20   Description : This class is intended for storing different object attributes that
21                 have only two states (0 and 1).
22 */
23
24 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeFlags, SALOMEDSImpl_GenericAttribute )
25
26 #ifndef WNT
27 class Standard_EXPORT SALOMEDSImpl_AttributeFlags :  public SALOMEDSImpl_GenericAttribute
28 #else
29 class SALOMEDSImpl_AttributeFlags :  public SALOMEDSImpl_GenericAttribute
30 #endif
31 {
32 private:
33 Standard_Integer myValue;
34
35 public:
36 Standard_EXPORT  static const Standard_GUID&            GetID() ;
37 Standard_EXPORT  static Handle(SALOMEDSImpl_AttributeFlags) Set(const TDF_Label&, const Standard_Integer );
38                                                                
39                                        SALOMEDSImpl_AttributeFlags();
40 Standard_EXPORT  virtual                                ~SALOMEDSImpl_AttributeFlags();
41
42 Standard_EXPORT  const Standard_GUID&                   ID() const;
43 Standard_EXPORT  void                                   Restore( const Handle(TDF_Attribute)& with );
44 Standard_EXPORT  Handle_TDF_Attribute                   NewEmpty() const;
45 Standard_EXPORT  void                                   Paste( const Handle(TDF_Attribute)& into,
46                                               const Handle(TDF_RelocationTable)& RT ) const;
47 Standard_EXPORT  void                                   Set( const Standard_Integer );
48 Standard_EXPORT  Standard_Integer                       Get() const;
49
50 public:
51   DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeFlags )
52 };
53
54 #endif