1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
7 // File : SALOMEDS_PythonObjectAttribute.hxx
8 // Author : Michael Ponikarov
12 #ifndef _SALOMEDS_PythonObjectAttribute_HeaderFile
13 #define _SALOMEDS_PythonObjectAttribute_HeaderFile
15 #ifndef _Standard_HeaderFile
16 #include <Standard.hxx>
18 #ifndef _Handle_SALOMEDS_PythonObjectAttribute_HeaderFile
19 #include <Handle_SALOMEDS_PythonObjectAttribute.hxx>
22 #ifndef _Handle_TColStd_HArray1OfCharacter_HeaderFile
23 #include <Handle_TColStd_HArray1OfCharacter.hxx>
25 #ifndef _Standard_Boolean_HeaderFile
26 #include <Standard_Boolean.hxx>
28 #ifndef _TDF_Attribute_HeaderFile
29 #include <TDF_Attribute.hxx>
31 #ifndef _Standard_Integer_HeaderFile
32 #include <Standard_Integer.hxx>
34 #ifndef _Standard_CString_HeaderFile
35 #include <Standard_CString.hxx>
37 #ifndef _Handle_TDF_Attribute_HeaderFile
38 #include <Handle_TDF_Attribute.hxx>
40 #ifndef _Handle_TDF_RelocationTable_HeaderFile
41 #include <Handle_TDF_RelocationTable.hxx>
43 class TColStd_HArray1OfCharacter;
47 class TDF_RelocationTable;
50 class SALOMEDS_PythonObjectAttribute : public TDF_Attribute {
54 inline void* operator new(size_t,void* anAddress)
58 inline void* operator new(size_t size)
60 return Standard::Allocate(size);
62 inline void operator delete(void *anAddress)
64 if (anAddress) Standard::Free((Standard_Address&)anAddress);
66 // inline void operator delete(void *anAddress, size_t size)
68 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
72 Standard_EXPORT static const Standard_GUID& GetID() ;
73 Standard_EXPORT static Handle_SALOMEDS_PythonObjectAttribute Set(const TDF_Label& label) ;
74 Standard_EXPORT SALOMEDS_PythonObjectAttribute();
75 Standard_EXPORT void SetObject(const Standard_CString theSequence,const Standard_Boolean theScript) ;
76 Standard_EXPORT Standard_CString GetObject() const;
77 Standard_EXPORT Standard_Boolean IsScript() const;
78 Standard_EXPORT Standard_Integer GetLength() const;
79 Standard_EXPORT const Standard_GUID& ID() const;
80 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
81 Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
82 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
83 Standard_EXPORT ~SALOMEDS_PythonObjectAttribute();
90 Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_PythonObjectAttribute_Type_();
91 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
92 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
112 Standard_CString mySequence;
113 Standard_Boolean myIsScript;
122 // other inline functions and methods (like "C++: function call" methods)