1 // File : SALOMEDSImpl_AttributeFlags.hxx
2 // Author : Sergey LITONIN
5 #ifndef SALOMEDSImpl_AttributeFlags_HeaderFile
6 #define SALOMEDSImpl_AttributeFlags_HeaderFile
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TDF_Label.hxx>
11 #include "SALOMEDSImpl_GenericAttribute.hxx"
14 class Handle(TDF_Attribute);
15 class Handle(TDF_RelocationTable);
19 Class : SALOMEDSImpl_AttributeFlags
20 Description : This class is intended for storing different object attributes that
21 have only two states (0 and 1).
24 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeFlags, SALOMEDSImpl_GenericAttribute )
27 class Standard_EXPORT SALOMEDSImpl_AttributeFlags : public SALOMEDSImpl_GenericAttribute
29 class SALOMEDSImpl_AttributeFlags : public SALOMEDSImpl_GenericAttribute
33 Standard_Integer myValue;
36 Standard_EXPORT static const Standard_GUID& GetID() ;
37 Standard_EXPORT static Handle(SALOMEDSImpl_AttributeFlags) Set(const TDF_Label&, const Standard_Integer );
39 SALOMEDSImpl_AttributeFlags();
40 Standard_EXPORT virtual ~SALOMEDSImpl_AttributeFlags();
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;
51 DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeFlags )