1 // File : Handle_SALOMEDS_DrawableAttribute.hxx
2 // Created : Tue Jul 09 16:42:05 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _Handle_SALOMEDS_DrawableAttribute_HeaderFile
11 #define _Handle_SALOMEDS_DrawableAttribute_HeaderFile
13 #ifndef _Standard_Macro_HeaderFile
14 #include <Standard_Macro.hxx>
16 #ifndef _Standard_HeaderFile
17 #include <Standard.hxx>
20 #ifndef _Handle_TDataStd_Integer_HeaderFile
21 #include <Handle_TDataStd_Integer.hxx>
24 class Standard_Transient;
25 class Handle_Standard_Type;
26 class Handle(TDataStd_Integer);
27 class SALOMEDS_DrawableAttribute;
28 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_DrawableAttribute);
30 class Handle(SALOMEDS_DrawableAttribute) : public Handle(TDataStd_Integer) {
32 inline void* operator new(size_t,void* anAddress)
36 inline void* operator new(size_t size)
38 return Standard::Allocate(size);
40 inline void operator delete(void *anAddress)
42 if (anAddress) Standard::Free((Standard_Address&)anAddress);
44 // inline void operator delete(void *anAddress, size_t size)
46 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
48 Handle(SALOMEDS_DrawableAttribute)():Handle(TDataStd_Integer)() {}
49 Handle(SALOMEDS_DrawableAttribute)(const Handle(SALOMEDS_DrawableAttribute)& aHandle) : Handle(TDataStd_Integer)(aHandle)
53 Handle(SALOMEDS_DrawableAttribute)(const SALOMEDS_DrawableAttribute* anItem) : Handle(TDataStd_Integer)((TDataStd_Integer *)anItem)
57 Handle(SALOMEDS_DrawableAttribute)& operator=(const Handle(SALOMEDS_DrawableAttribute)& aHandle)
59 Assign(aHandle.Access());
63 Handle(SALOMEDS_DrawableAttribute)& operator=(const SALOMEDS_DrawableAttribute* anItem)
65 Assign((Standard_Transient *)anItem);
69 SALOMEDS_DrawableAttribute* operator->()
71 return (SALOMEDS_DrawableAttribute *)ControlAccess();
74 SALOMEDS_DrawableAttribute* operator->() const
76 return (SALOMEDS_DrawableAttribute *)ControlAccess();
79 Standard_EXPORT ~Handle(SALOMEDS_DrawableAttribute)();
81 Standard_EXPORT static const Handle(SALOMEDS_DrawableAttribute) DownCast(const Handle(Standard_Transient)& AnObject);