Salome HOME
Copyrights update
[modules/geom.git] / src / GEOM / GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/
19 //
20
21 #ifndef _GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
22 #define _GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
23
24 #ifndef _Standard_HeaderFile
25 #include <Standard.hxx>
26 #endif
27 #ifndef _Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
28 #include <Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
29 #endif
30
31 #ifndef _TCollection_AsciiString_HeaderFile
32 #include <TCollection_AsciiString.hxx>
33 #endif
34 #ifndef _Handle_Standard_Transient_HeaderFile
35 #include <Handle_Standard_Transient.hxx>
36 #endif
37 #ifndef _TCollection_MapNode_HeaderFile
38 #include <TCollection_MapNode.hxx>
39 #endif
40 #ifndef _TCollection_MapNodePtr_HeaderFile
41 #include <TCollection_MapNodePtr.hxx>
42 #endif
43 class Standard_Transient;
44 class TCollection_AsciiString;
45 class GEOM_DataMapOfAsciiStringTransient;
46 class GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient;
47
48
49 class GEOM_DataMapNodeOfDataMapOfAsciiStringTransient : public TCollection_MapNode {
50
51 public:
52
53     void* operator new(size_t,void* anAddress) 
54       {
55         return anAddress;
56       }
57     void* operator new(size_t size) 
58       { 
59         return Standard::Allocate(size); 
60       }
61     void  operator delete(void *anAddress) 
62       { 
63         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
64       }
65  // Methods PUBLIC
66  // 
67 GEOM_DataMapNodeOfDataMapOfAsciiStringTransient(const TCollection_AsciiString& K,const Handle(Standard_Transient)& I,const TCollection_MapNodePtr& n);
68   TCollection_AsciiString& Key() const;
69   Handle_Standard_Transient& Value() const;
70 Standard_EXPORT ~GEOM_DataMapNodeOfDataMapOfAsciiStringTransient();
71
72
73
74
75  // Type management
76  //
77  Standard_EXPORT friend Handle_Standard_Type& GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_Type_();
78  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
79  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
80
81 protected:
82
83  // Methods PROTECTED
84  // 
85
86
87  // Fields PROTECTED
88  //
89
90
91 private: 
92
93  // Methods PRIVATE
94  // 
95
96
97  // Fields PRIVATE
98  //
99 TCollection_AsciiString myKey;
100 Handle_Standard_Transient myValue;
101
102
103 };
104
105 #define TheKey TCollection_AsciiString
106 #define TheKey_hxx <TCollection_AsciiString.hxx>
107 #define TheItem Handle_Standard_Transient
108 #define TheItem_hxx <Standard_Transient.hxx>
109 #define Hasher TCollection_AsciiString
110 #define Hasher_hxx <TCollection_AsciiString.hxx>
111 #define TCollection_DataMapNode GEOM_DataMapNodeOfDataMapOfAsciiStringTransient
112 #define TCollection_DataMapNode_hxx <GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
113 #define TCollection_DataMapIterator GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient
114 #define TCollection_DataMapIterator_hxx <GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient.hxx>
115 #define Handle_TCollection_DataMapNode Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient
116 #define TCollection_DataMapNode_Type_() GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_Type_()
117 #define TCollection_DataMap GEOM_DataMapOfAsciiStringTransient
118 #define TCollection_DataMap_hxx <GEOM_DataMapOfAsciiStringTransient.hxx>
119
120 #include <TCollection_DataMapNode.lxx>
121
122 #undef TheKey
123 #undef TheKey_hxx
124 #undef TheItem
125 #undef TheItem_hxx
126 #undef Hasher
127 #undef Hasher_hxx
128 #undef TCollection_DataMapNode
129 #undef TCollection_DataMapNode_hxx
130 #undef TCollection_DataMapIterator
131 #undef TCollection_DataMapIterator_hxx
132 #undef Handle_TCollection_DataMapNode
133 #undef TCollection_DataMapNode_Type_
134 #undef TCollection_DataMap
135 #undef TCollection_DataMap_hxx
136
137
138 // other Inline functions and methods (like "C++: function call" methods)
139 //
140
141
142 #endif