Salome HOME
Merge from V5_1_main 14/05/2010
[modules/geom.git] / src / GEOMAlgo / Handle_GEOMAlgo_ClsfSolid.hxx
1 //  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  This library is free software; you can redistribute it and/or
4 //  modify it under the terms of the GNU Lesser General Public
5 //  License as published by the Free Software Foundation; either
6 //  version 2.1 of the License.
7 //
8 //  This library is distributed in the hope that it will be useful,
9 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 //  Lesser General Public License for more details.
12 //
13 //  You should have received a copy of the GNU Lesser General Public
14 //  License along with this library; if not, write to the Free Software
15 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef _Handle_GEOMAlgo_ClsfSolid_HeaderFile
21 #define _Handle_GEOMAlgo_ClsfSolid_HeaderFile
22
23 #ifndef _Standard_Macro_HeaderFile
24 #include <Standard_Macro.hxx>
25 #endif
26 #ifndef _Standard_HeaderFile
27 #include <Standard.hxx>
28 #endif
29
30 #ifndef _Handle_GEOMAlgo_Clsf_HeaderFile
31 #include <Handle_GEOMAlgo_Clsf.hxx>
32 #endif
33
34 class Standard_Transient;
35 class Handle_Standard_Type;
36 class Handle(GEOMAlgo_Clsf);
37 class GEOMAlgo_ClsfSolid;
38 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(GEOMAlgo_ClsfSolid);
39
40 class Handle(GEOMAlgo_ClsfSolid) : public Handle(GEOMAlgo_Clsf) {
41   public:
42     Handle(GEOMAlgo_ClsfSolid)():Handle(GEOMAlgo_Clsf)() {} 
43     Handle(GEOMAlgo_ClsfSolid)(const Handle(GEOMAlgo_ClsfSolid)& aHandle) : Handle(GEOMAlgo_Clsf)(aHandle) 
44      {
45      }
46
47     Handle(GEOMAlgo_ClsfSolid)(const GEOMAlgo_ClsfSolid* anItem) : Handle(GEOMAlgo_Clsf)((GEOMAlgo_Clsf *)anItem) 
48      {
49      }
50
51     Handle(GEOMAlgo_ClsfSolid)& operator=(const Handle(GEOMAlgo_ClsfSolid)& aHandle)
52      {
53       Assign(aHandle.Access());
54       return *this;
55      }
56
57     Handle(GEOMAlgo_ClsfSolid)& operator=(const GEOMAlgo_ClsfSolid* anItem)
58      {
59       Assign((Standard_Transient *)anItem);
60       return *this;
61      }
62
63     GEOMAlgo_ClsfSolid* operator->() const
64      {
65       return (GEOMAlgo_ClsfSolid *)ControlAccess();
66      }
67
68 //   Standard_EXPORT ~Handle(GEOMAlgo_ClsfSolid)();
69  
70    Standard_EXPORT static const Handle(GEOMAlgo_ClsfSolid) DownCast(const Handle(Standard_Transient)& AnObject);
71 };
72 #endif