Version: 8.3.0
SMESH_Client.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 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 // SMESH SMESHClient : tool to update client mesh structure by mesh from server
24 // File : SMESH_Client.hxx
25 // Author : Pavel TELKOV
26 // Module : SMESH
27 //
28 #ifndef _SMESH_Client_HeaderFile
29 #define _SMESH_Client_HeaderFile
30 
31 #include <SALOMEconfig.h>
32 #include CORBA_SERVER_HEADER(SMESH_Gen)
33 #include CORBA_SERVER_HEADER(SMESH_Mesh)
34 
35 #ifdef WIN32
36 # if defined SMESHCLIENT_EXPORTS || defined SMESHClient_EXPORTS
37 # define SMESHCLIENT_EXPORT __declspec( dllexport )
38 # else
39 # define SMESHCLIENT_EXPORT __declspec( dllimport )
40 # endif
41 #else
42 # define SMESHCLIENT_EXPORT
43 #endif
44 
45 class SMESHDS_Mesh;
46 class SMDS_Mesh;
47 
48 
49 //=====================================================================
50 // SMESH_Client : class definition
51 //=====================================================================
53 {
54 public:
55  static
56  SMESH::SMESH_Gen_var
57  GetSMESHGen(CORBA::ORB_ptr theORB,
58  CORBA::Boolean& theIsEmbeddedMode);
59 
60  SMESH_Client(CORBA::ORB_ptr theORB,
61  SMESH::SMESH_Mesh_ptr theMesh);
62  ~SMESH_Client();
63 
64  bool
65  Update(bool theIsClear);
66 
67  SMDS_Mesh*
68  GetMesh() const;
69 
70  SMDS_Mesh*
71  operator->() const;
72 
73  SMESH::SMESH_Mesh_ptr
74  GetMeshServer();
75 
76 protected:
77  SMESH::SMESH_Mesh_var myMeshServer;
80 };
81 
82 
83 #endif