Salome HOME
NRI : Remove dependence with VISU.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TextColorAttribute.hxx
1 //  File      : SALOMEDS_TextColorAttribute.hxx
2 //  Created   : Wed Jul 10 16:42:01 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef _SALOMEDS_TextColorAttribute_HeaderFile
11 #define _SALOMEDS_TextColorAttribute_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_TextColorAttribute_HeaderFile
17 #include <Handle_SALOMEDS_TextColorAttribute.hxx>
18 #endif
19
20 #ifndef _TDataStd_RealArray_HeaderFile
21 #include <TDataStd_RealArray.hxx>
22 #endif
23 #ifndef _Handle_TDF_Attribute_HeaderFile
24 #include <Handle_TDF_Attribute.hxx>
25 #endif
26 #ifndef _Handle_TDF_RelocationTable_HeaderFile
27 #include <Handle_TDF_RelocationTable.hxx>
28 #endif
29 class Standard_GUID;
30 class TDF_Attribute;
31 class TDF_RelocationTable;
32
33
34 class SALOMEDS_TextColorAttribute : public TDataStd_RealArray {
35
36 public:
37
38     inline void* operator new(size_t,void* anAddress) 
39       {
40         return anAddress;
41       }
42     inline void* operator new(size_t size) 
43       { 
44         return Standard::Allocate(size); 
45       }
46     inline void  operator delete(void *anAddress) 
47       { 
48         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
49       }
50 //    inline void  operator delete(void *anAddress, size_t size) 
51 //      { 
52 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
53 //      }
54  // Methods PUBLIC
55  // 
56 Standard_EXPORT static const Standard_GUID& GetID() ;
57 Standard_EXPORT SALOMEDS_TextColorAttribute();
58 Standard_EXPORT  const Standard_GUID& ID() const;
59 Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
60 Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
61 Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
62 Standard_EXPORT ~SALOMEDS_TextColorAttribute();
63
64
65
66
67  // Type management
68  //
69  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_TextColorAttribute_Type_();
70  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
71  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
72
73 protected:
74
75  // Methods PROTECTED
76  // 
77
78
79  // Fields PROTECTED
80  //
81
82
83 private: 
84
85  // Methods PRIVATE
86  // 
87
88
89  // Fields PRIVATE
90  //
91
92
93 };
94
95
96
97
98
99 // other inline functions and methods (like "C++: function call" methods)
100 //
101
102
103 #endif