Salome HOME
Update copyrights 2014.
[modules/geom.git] / src / GEOM / GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx
1 // Copyright (C) 2007-2014  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, or (at your option) any later version.
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
23 #ifndef _GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
24 #define _GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
25
26 #ifndef _Standard_HeaderFile
27 #include <Standard.hxx>
28 #endif
29 #ifndef _Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
30 #include <Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
31 #endif
32
33 #ifndef _TCollection_AsciiString_HeaderFile
34 #include <TCollection_AsciiString.hxx>
35 #endif
36 #ifndef _Handle_Standard_Transient_HeaderFile
37 #include <Handle_Standard_Transient.hxx>
38 #endif
39 #ifndef _TCollection_MapNode_HeaderFile
40 #include <TCollection_MapNode.hxx>
41 #endif
42 #ifndef _TCollection_MapNodePtr_HeaderFile
43 #include <TCollection_MapNodePtr.hxx>
44 #endif
45 class Standard_Transient;
46 class TCollection_AsciiString;
47 class GEOM_DataMapOfAsciiStringTransient;
48 class GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient;
49
50
51 class GEOM_DataMapNodeOfDataMapOfAsciiStringTransient : public TCollection_MapNode {
52
53 public:
54
55     void* operator new(size_t,void* anAddress) 
56       {
57         return anAddress;
58       }
59     void* operator new(size_t size) 
60       { 
61         return Standard::Allocate(size); 
62       }
63     void  operator delete(void *anAddress) 
64       { 
65         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
66       }
67  // Methods PUBLIC
68  // 
69 GEOM_DataMapNodeOfDataMapOfAsciiStringTransient(const TCollection_AsciiString& K,const Handle(Standard_Transient)& I,const TCollection_MapNodePtr& n);
70   TCollection_AsciiString& Key() const;
71   Handle_Standard_Transient& Value() const;
72 Standard_EXPORT ~GEOM_DataMapNodeOfDataMapOfAsciiStringTransient();
73
74
75
76
77  // Type management
78  //
79  Standard_EXPORT friend Handle_Standard_Type& GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_Type_();
80  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
81  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
82
83 protected:
84
85  // Methods PROTECTED
86  // 
87
88
89  // Fields PROTECTED
90  //
91
92
93 private: 
94
95  // Methods PRIVATE
96  // 
97
98
99  // Fields PRIVATE
100  //
101 TCollection_AsciiString myKey;
102 Handle_Standard_Transient myValue;
103
104
105 };
106
107 #define TheKey TCollection_AsciiString
108 #define TheKey_hxx <TCollection_AsciiString.hxx>
109 #define TheItem Handle_Standard_Transient
110 #define TheItem_hxx <Standard_Transient.hxx>
111 #define Hasher TCollection_AsciiString
112 #define Hasher_hxx <TCollection_AsciiString.hxx>
113 #define TCollection_DataMapNode GEOM_DataMapNodeOfDataMapOfAsciiStringTransient
114 #define TCollection_DataMapNode_hxx <GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
115 #define TCollection_DataMapIterator GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient
116 #define TCollection_DataMapIterator_hxx <GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient.hxx>
117 #define Handle_TCollection_DataMapNode Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient
118 #define TCollection_DataMapNode_Type_() GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_Type_()
119 #define TCollection_DataMap GEOM_DataMapOfAsciiStringTransient
120 #define TCollection_DataMap_hxx <GEOM_DataMapOfAsciiStringTransient.hxx>
121
122 #include <TCollection_DataMapNode.lxx>
123
124 #undef TheKey
125 #undef TheKey_hxx
126 #undef TheItem
127 #undef TheItem_hxx
128 #undef Hasher
129 #undef Hasher_hxx
130 #undef TCollection_DataMapNode
131 #undef TCollection_DataMapNode_hxx
132 #undef TCollection_DataMapIterator
133 #undef TCollection_DataMapIterator_hxx
134 #undef Handle_TCollection_DataMapNode
135 #undef TCollection_DataMapNode_Type_
136 #undef TCollection_DataMap
137 #undef TCollection_DataMap_hxx
138
139
140 // other Inline functions and methods (like "C++: function call" methods)
141 //
142
143
144 #endif