Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
1 //  File      : SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
2 //  Created   : Tue Aug 13 14:05:03 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header: 
9
10 #ifndef _SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
11 #define _SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
17 #include <Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx>
18 #endif
19
20 #ifndef _TCollection_ExtendedString_HeaderFile
21 #include <TCollection_ExtendedString.hxx>
22 #endif
23 #ifndef _TDF_Label_HeaderFile
24 #include <TDF_Label.hxx>
25 #endif
26 #ifndef _TCollection_MapNode_HeaderFile
27 #include <TCollection_MapNode.hxx>
28 #endif
29 #ifndef _TCollection_MapNodePtr_HeaderFile
30 #include <TCollection_MapNodePtr.hxx>
31 #endif
32 class TCollection_ExtendedString;
33 class TDF_Label;
34 class SALOMEDS_DataMapStringLabel;
35 class SALOMEDS_DataMapIteratorOfDataMapStringLabel;
36
37
38 class SALOMEDS_DataMapNodeOfDataMapStringLabel : public TCollection_MapNode {
39
40 public:
41
42     inline void* operator new(size_t,void* anAddress) 
43       {
44         return anAddress;
45       }
46     inline void* operator new(size_t size) 
47       { 
48         return Standard::Allocate(size); 
49       }
50     inline void  operator delete(void *anAddress) 
51       { 
52         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
53       }
54 //    inline void  operator delete(void *anAddress, size_t size) 
55 //      { 
56 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
57 //      }
58  // Methods PUBLIC
59  // 
60 Standard_EXPORT inline SALOMEDS_DataMapNodeOfDataMapStringLabel(const TCollection_ExtendedString& K,const TDF_Label& I,const TCollection_MapNodePtr& n);
61 Standard_EXPORT inline   TCollection_ExtendedString& Key() const;
62 Standard_EXPORT inline   TDF_Label& Value() const;
63 Standard_EXPORT ~SALOMEDS_DataMapNodeOfDataMapStringLabel();
64
65
66
67
68  // Type management
69  //
70  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_DataMapNodeOfDataMapStringLabel_Type_();
71  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
72  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
73
74 protected:
75
76  // Methods PROTECTED
77  // 
78
79
80  // Fields PROTECTED
81  //
82
83
84 private: 
85
86  // Methods PRIVATE
87  // 
88
89
90  // Fields PRIVATE
91  //
92 TCollection_ExtendedString myKey;
93 TDF_Label myValue;
94
95
96 };
97
98 #define TheKey TCollection_ExtendedString
99 #define TheKey_hxx <TCollection_ExtendedString.hxx>
100 #define TheItem TDF_Label
101 #define TheItem_hxx <TDF_Label.hxx>
102 #define Hasher TCollection_ExtendedString
103 #define Hasher_hxx <TCollection_ExtendedString.hxx>
104 #define TCollection_DataMapNode SALOMEDS_DataMapNodeOfDataMapStringLabel
105 #define TCollection_DataMapNode_hxx "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx"
106 #define TCollection_DataMapIterator SALOMEDS_DataMapIteratorOfDataMapStringLabel
107 #define TCollection_DataMapIterator_hxx "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx"
108 #define Handle_TCollection_DataMapNode Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel
109 #define TCollection_DataMapNode_Type_() SALOMEDS_DataMapNodeOfDataMapStringLabel_Type_()
110 #define TCollection_DataMap SALOMEDS_DataMapStringLabel
111 #define TCollection_DataMap_hxx "SALOMEDS_DataMapStringLabel.hxx"
112
113 #include <TCollection_DataMapNode.lxx>
114
115 #undef TheKey
116 #undef TheKey_hxx
117 #undef TheItem
118 #undef TheItem_hxx
119 #undef Hasher
120 #undef Hasher_hxx
121 #undef TCollection_DataMapNode
122 #undef TCollection_DataMapNode_hxx
123 #undef TCollection_DataMapIterator
124 #undef TCollection_DataMapIterator_hxx
125 #undef Handle_TCollection_DataMapNode
126 #undef TCollection_DataMapNode_Type_
127 #undef TCollection_DataMap
128 #undef TCollection_DataMap_hxx
129
130
131 // other inline functions and methods (like "C++: function call" methods)
132 //
133
134
135 #endif