1 // File : SALOMEDS_DrawableAttribute.hxx
2 // Created : Tue Jul 09 16:44:15 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _SALOMEDS_DrawableAttribute_HeaderFile
11 #define _SALOMEDS_DrawableAttribute_HeaderFile
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
16 #ifndef _Handle_SALOMEDS_DrawableAttribute_HeaderFile
17 #include <Handle_SALOMEDS_DrawableAttribute.hxx>
20 #ifndef _TDataStd_Integer_HeaderFile
21 #include <TDataStd_Integer.hxx>
23 #ifndef _Standard_Integer_HeaderFile
24 #include <Standard_Integer.hxx>
26 #ifndef _Handle_TDF_Attribute_HeaderFile
27 #include <Handle_TDF_Attribute.hxx>
29 #ifndef _Handle_TDF_RelocationTable_HeaderFile
30 #include <Handle_TDF_RelocationTable.hxx>
35 class TDF_RelocationTable;
38 class SALOMEDS_DrawableAttribute : public TDataStd_Integer {
42 inline void* operator new(size_t,void* anAddress)
46 inline void* operator new(size_t size)
48 return Standard::Allocate(size);
50 inline void operator delete(void *anAddress)
52 if (anAddress) Standard::Free((Standard_Address&)anAddress);
54 // inline void operator delete(void *anAddress, size_t size)
56 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
60 Standard_EXPORT static const Standard_GUID& GetID() ;
61 Standard_EXPORT static Handle_SALOMEDS_DrawableAttribute Set(const TDF_Label& label,const Standard_Integer value) ;
62 Standard_EXPORT SALOMEDS_DrawableAttribute();
63 Standard_EXPORT const Standard_GUID& ID() const;
64 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
65 Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
66 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
67 Standard_EXPORT ~SALOMEDS_DrawableAttribute();
74 Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_DrawableAttribute_Type_();
75 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
76 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
104 // other inline functions and methods (like "C++: function call" methods)