1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : Handle_SALOMEDS_StudyPropertiesAttribute.hxx
8 // Author : Yves FRICAUD
12 #ifndef _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
13 #define _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
15 #ifndef _Standard_Macro_HeaderFile
16 #include <Standard_Macro.hxx>
18 #ifndef _Standard_HeaderFile
19 #include <Standard.hxx>
22 #ifndef _Handle_TDF_Attribute_HeaderFile
23 #include <Handle_TDF_Attribute.hxx>
26 class Standard_Transient;
27 class Handle_Standard_Type;
28 class Handle(TDF_Attribute);
29 class SALOMEDS_StudyPropertiesAttribute;
30 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_StudyPropertiesAttribute);
32 class Handle(SALOMEDS_StudyPropertiesAttribute) : public Handle(TDF_Attribute) {
34 inline void* operator new(size_t,void* anAddress)
38 inline void* operator new(size_t size)
40 return Standard::Allocate(size);
42 inline void operator delete(void *anAddress)
44 if (anAddress) Standard::Free((Standard_Address&)anAddress);
46 // inline void operator delete(void *anAddress, size_t size)
48 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
50 Handle(SALOMEDS_StudyPropertiesAttribute)():Handle(TDF_Attribute)() {}
51 Handle(SALOMEDS_StudyPropertiesAttribute)(const Handle(SALOMEDS_StudyPropertiesAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle)
55 Handle(SALOMEDS_StudyPropertiesAttribute)(const SALOMEDS_StudyPropertiesAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem)
59 Handle(SALOMEDS_StudyPropertiesAttribute)& operator=(const Handle(SALOMEDS_StudyPropertiesAttribute)& aHandle)
61 Assign(aHandle.Access());
65 Handle(SALOMEDS_StudyPropertiesAttribute)& operator=(const SALOMEDS_StudyPropertiesAttribute* anItem)
67 Assign((Standard_Transient *)anItem);
71 SALOMEDS_StudyPropertiesAttribute* operator->()
73 return (SALOMEDS_StudyPropertiesAttribute *)ControlAccess();
76 SALOMEDS_StudyPropertiesAttribute* operator->() const
78 return (SALOMEDS_StudyPropertiesAttribute *)ControlAccess();
81 Standard_EXPORT ~Handle(SALOMEDS_StudyPropertiesAttribute)();
83 Standard_EXPORT static const Handle(SALOMEDS_StudyPropertiesAttribute) DownCast(const Handle(Standard_Transient)& AnObject);