Salome HOME
Merge from branch CCRT_Port_V220.
[modules/kernel.git] / src / SALOMEDS / Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
8 //  Author : Sergey Ruin
9 //  Module : SALOME
10
11 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
12 #define _Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
13
14 #ifndef _Standard_Macro_HeaderFile
15 #include <Standard_Macro.hxx>
16 #endif
17 #ifndef _Standard_HeaderFile
18 #include <Standard.hxx>
19 #endif
20
21 #ifndef _Handle_TCollection_MapNode_HeaderFile
22 #include <Handle_TCollection_MapNode.hxx>
23 #endif
24
25 class Standard_Transient;
26 class Handle_Standard_Type;
27 class Handle(TCollection_MapNode);
28 class SALOMEDS_DataMapNodeOfDataMapOfIntegerString;
29 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapOfIntegerString);
30
31 class Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString) : public Handle(TCollection_MapNode) {
32   public:
33     void* operator new(size_t,void* anAddress) 
34       {
35         return anAddress;
36       }
37     void* operator new(size_t size) 
38       { 
39         return Standard::Allocate(size); 
40       }
41     void  operator delete(void *anAddress) 
42       { 
43         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
44       }
45     Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)():Handle(TCollection_MapNode)() {} 
46     Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)(const Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)& aHandle) : Handle(TCollection_MapNode)(aHandle) 
47      {
48      }
49
50     Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)(const SALOMEDS_DataMapNodeOfDataMapOfIntegerString* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) 
51      {
52      }
53
54     Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)& operator=(const Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)& aHandle)
55      {
56       Assign(aHandle.Access());
57       return *this;
58      }
59
60     Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)& operator=(const SALOMEDS_DataMapNodeOfDataMapOfIntegerString* anItem)
61      {
62       Assign((Standard_Transient *)anItem);
63       return *this;
64      }
65
66     SALOMEDS_DataMapNodeOfDataMapOfIntegerString* operator->() 
67      {
68       return (SALOMEDS_DataMapNodeOfDataMapOfIntegerString *)ControlAccess();
69      }
70
71     SALOMEDS_DataMapNodeOfDataMapOfIntegerString* operator->() const 
72      {
73       return (SALOMEDS_DataMapNodeOfDataMapOfIntegerString *)ControlAccess();
74      }
75
76    Standard_EXPORT ~Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString)();
77  
78    Standard_EXPORT static const Handle(SALOMEDS_DataMapNodeOfDataMapOfIntegerString) DownCast(const Handle(Standard_Transient)& AnObject);
79 };
80 #endif