1 // File : Handle_SALOMEDS_StudyPropertiesAttribute.hxx
2 // Created : Tue Oct 8 10:13:30 2002
3 // Author : Yves FRICAUD
6 // Copyright : Open CASCADE 2001
9 #ifndef _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
10 #define _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
12 #ifndef _Standard_Macro_HeaderFile
13 #include <Standard_Macro.hxx>
15 #ifndef _Standard_HeaderFile
16 #include <Standard.hxx>
19 #ifndef _Handle_TDF_Attribute_HeaderFile
20 #include <Handle_TDF_Attribute.hxx>
23 class Standard_Transient;
24 class Handle_Standard_Type;
25 class Handle(TDF_Attribute);
26 class SALOMEDS_StudyPropertiesAttribute;
27 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_StudyPropertiesAttribute);
29 class Handle(SALOMEDS_StudyPropertiesAttribute) : public Handle(TDF_Attribute) {
31 inline void* operator new(size_t,void* anAddress)
35 inline void* operator new(size_t size)
37 return Standard::Allocate(size);
39 inline void operator delete(void *anAddress)
41 if (anAddress) Standard::Free((Standard_Address&)anAddress);
43 // inline void operator delete(void *anAddress, size_t size)
45 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
47 Handle(SALOMEDS_StudyPropertiesAttribute)():Handle(TDF_Attribute)() {}
48 Handle(SALOMEDS_StudyPropertiesAttribute)(const Handle(SALOMEDS_StudyPropertiesAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle)
52 Handle(SALOMEDS_StudyPropertiesAttribute)(const SALOMEDS_StudyPropertiesAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem)
56 Handle(SALOMEDS_StudyPropertiesAttribute)& operator=(const Handle(SALOMEDS_StudyPropertiesAttribute)& aHandle)
58 Assign(aHandle.Access());
62 Handle(SALOMEDS_StudyPropertiesAttribute)& operator=(const SALOMEDS_StudyPropertiesAttribute* anItem)
64 Assign((Standard_Transient *)anItem);
68 SALOMEDS_StudyPropertiesAttribute* operator->()
70 return (SALOMEDS_StudyPropertiesAttribute *)ControlAccess();
73 SALOMEDS_StudyPropertiesAttribute* operator->() const
75 return (SALOMEDS_StudyPropertiesAttribute *)ControlAccess();
78 Standard_EXPORT ~Handle(SALOMEDS_StudyPropertiesAttribute)();
80 Standard_EXPORT static const Handle(SALOMEDS_StudyPropertiesAttribute) DownCast(const Handle(Standard_Transient)& AnObject);