Debian Codegraph @

src/3rdParty/salomesmesh/inc/Handle_SMESH_MeshVSLink.hxx

raw symbols SCIP
1 // SMESH SMESH_MeshVSLink : Connection of SMESH with MeshVS from OCC
2 //
3 // Copyright (C) 2003 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 : [email protected]
21 //
22 // File : SMESH_MeshVSLink.cxx
23 // Created : Mon Dec 1 09:00:00 2008
24 // Author : Sioutis Fotios
25 // Module : SMESH
26
27 #ifndef _Handle_SMESH_MeshVSLink_HeaderFile
28 #define _Handle_SMESH_MeshVSLink_HeaderFile
29
30 #ifndef _Standard_Macro_HeaderFile
31 #include <Standard_Macro.hxx>
32 #endif
33 #ifndef _Standard_HeaderFile
34 #include <Standard.hxx>
35 #endif
36 #ifndef _Standard_Version_HeaderFile
37 #include <Standard_Version.hxx>
38 #endif
39
40 #if OCC_VERSION_HEX < 0x070000
41 #ifndef _Handle_MeshVS_DataSource3D_HeaderFile
42 //#include <Handle_MeshVS_DataSource3D.hxx>
43 #include <MeshVS_DataSource3D.hxx>
44 #include <SMESH_MeshVSLink.hxx>
45 #endif
46
47 class Standard_Transient;
48 class Standard_Type;
49 class SMESH_MeshVSLink;
50
51 Standard_EXPORT Handle(Standard_Type)& STANDARD_TYPE(SMESH_MeshVSLink);
52
53 class Handle(SMESH_MeshVSLink) : public Handle(MeshVS_DataSource3D) {
54 public:
55 Handle(SMESH_MeshVSLink)():Handle(MeshVS_DataSource3D)() {}
56 Handle(SMESH_MeshVSLink)(const Handle(SMESH_MeshVSLink)& aHandle) : Handle(MeshVS_DataSource3D)(aHandle)
57 {
58 }
59
60 Handle(SMESH_MeshVSLink)(const SMESH_MeshVSLink* anItem) : Handle(MeshVS_DataSource3D)((MeshVS_DataSource3D *)anItem)
61 {
62 }
63
64 Handle(SMESH_MeshVSLink)& operator=(const Handle(SMESH_MeshVSLink)& aHandle)
65 {
66 Assign(aHandle.Access());
67 return *this;
68 }
69
70 Handle(SMESH_MeshVSLink)& operator=(const SMESH_MeshVSLink* anItem)
71 {
72 Assign((Standard_Transient *)anItem);
73 return *this;
74 }
75
76 SMESH_MeshVSLink* operator->() const
77 {
78 return (SMESH_MeshVSLink *)ControlAccess();
79 }
80
81 Standard_EXPORT static const Handle(SMESH_MeshVSLink) DownCast(const Handle(Standard_Transient)& AnObject);
82 };
83 #endif // OCC_VERSION_HEX < 0x070000
84 #endif