1 // File : SALOMEDS_IORAttribute.hxx
2 // Created : Thu Nov 29 21:00:34 2001
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2001
10 #ifndef _SALOMEDS_IORAttribute_HeaderFile
11 #define _SALOMEDS_IORAttribute_HeaderFile
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
16 #ifndef _Handle_SALOMEDS_IORAttribute_HeaderFile
17 #include "Handle_SALOMEDS_IORAttribute.hxx"
20 #ifndef _TDataStd_Comment_HeaderFile
21 #include <TDataStd_Comment.hxx>
23 #ifndef _Handle_TDF_Attribute_HeaderFile
24 #include <Handle_TDF_Attribute.hxx>
26 #ifndef _Handle_TDF_RelocationTable_HeaderFile
27 #include <Handle_TDF_RelocationTable.hxx>
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(SALOMEDS)
35 class TCollection_ExtendedString;
37 class TDF_RelocationTable;
40 class SALOMEDS_IORAttribute : public TDataStd_Comment {
44 inline void* operator new(size_t,void* anAddress)
48 inline void* operator new(size_t size)
50 return Standard::Allocate(size);
52 inline void operator delete(void *anAddress)
54 if (anAddress) Standard::Free((Standard_Address&)anAddress);
56 // inline void operator delete(void *anAddress, size_t size)
58 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
62 Standard_EXPORT static const Standard_GUID& GetID() ;
63 Standard_EXPORT static Handle_SALOMEDS_IORAttribute Set(const TDF_Label& label,const TCollection_ExtendedString& string, CORBA::ORB_ptr orb) ;
64 Standard_EXPORT SALOMEDS_IORAttribute();
65 Standard_EXPORT const Standard_GUID& ID() const;
66 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
67 Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
68 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
69 Standard_EXPORT ~SALOMEDS_IORAttribute();
76 Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_IORAttribute_Type_();
77 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
78 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
106 // other inline functions and methods (like "C++: function call" methods)