1 // File : Handle_SALOMEDS_TextColorAttribute.hxx
2 // Created : Wed Jul 10 12:52:50 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _Handle_SALOMEDS_TextColorAttribute_HeaderFile
11 #define _Handle_SALOMEDS_TextColorAttribute_HeaderFile
13 #ifndef _Standard_Macro_HeaderFile
14 #include <Standard_Macro.hxx>
16 #ifndef _Standard_HeaderFile
17 #include <Standard.hxx>
20 #ifndef _Handle_TDataStd_RealArray_HeaderFile
21 #include <Handle_TDataStd_RealArray.hxx>
24 class Standard_Transient;
25 class Handle_Standard_Type;
26 class Handle(TDataStd_RealArray);
27 class SALOMEDS_TextColorAttribute;
28 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_TextColorAttribute);
30 class Handle(SALOMEDS_TextColorAttribute) : public Handle(TDataStd_RealArray) {
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_TextColorAttribute)():Handle(TDataStd_RealArray)() {}
49 Handle(SALOMEDS_TextColorAttribute)(const Handle(SALOMEDS_TextColorAttribute)& aHandle) : Handle(TDataStd_RealArray)(aHandle)
53 Handle(SALOMEDS_TextColorAttribute)(const SALOMEDS_TextColorAttribute* anItem) : Handle(TDataStd_RealArray)((TDataStd_RealArray *)anItem)
57 Handle(SALOMEDS_TextColorAttribute)& operator=(const Handle(SALOMEDS_TextColorAttribute)& aHandle)
59 Assign(aHandle.Access());
63 Handle(SALOMEDS_TextColorAttribute)& operator=(const SALOMEDS_TextColorAttribute* anItem)
65 Assign((Standard_Transient *)anItem);
69 SALOMEDS_TextColorAttribute* operator->()
71 return (SALOMEDS_TextColorAttribute *)ControlAccess();
74 SALOMEDS_TextColorAttribute* operator->() const
76 return (SALOMEDS_TextColorAttribute *)ControlAccess();
79 Standard_EXPORT ~Handle(SALOMEDS_TextColorAttribute)();
81 Standard_EXPORT static const Handle(SALOMEDS_TextColorAttribute) DownCast(const Handle(Standard_Transient)& AnObject);