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