1 // GEOM GEOMClient : tool to transfer BREP files from GEOM server to GEOM client
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : GEOM_Client.hxx
25 // Author : Yves FRICAUD
29 #ifndef _GEOM_Client_HeaderFile
30 #define _GEOM_Client_HeaderFile
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(GEOM_Shape)
34 #include CORBA_SERVER_HEADER(GEOM_Gen)
36 #ifndef _TColStd_SequenceOfAsciiString_HeaderFile
37 #include <TColStd_SequenceOfAsciiString.hxx>
39 #ifndef _TopTools_SequenceOfShape_HeaderFile
40 #include <TopTools_SequenceOfShape.hxx>
42 #ifndef _Standard_Integer_HeaderFile
43 #include <Standard_Integer.hxx>
45 class TCollection_AsciiString;
49 #ifndef _Standard_HeaderFile
50 #include <Standard.hxx>
52 #ifndef _Standard_Macro_HeaderFile
53 #include <Standard_Macro.hxx>
56 //=====================================================================
57 // GEOM_Client : class definition
58 //=====================================================================
63 inline void* operator new(size_t,void* anAddress)
67 inline void* operator new(size_t size)
69 return Standard::Allocate(size);
71 inline void operator delete(void *anAddress)
73 if (anAddress) Standard::Free((Standard_Address&)anAddress);
77 Standard_EXPORT GEOM_Client();
78 Standard_EXPORT Standard_Integer Find( const TCollection_AsciiString& ShapeIOR, TopoDS_Shape& S ) ;
79 Standard_EXPORT void Bind( const TCollection_AsciiString& ShapeIOR, const TopoDS_Shape& S ) ;
80 Standard_EXPORT TopoDS_Shape GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Shape_ptr aShape );
81 Standard_EXPORT void RemoveShapeFromBuffer( const TCollection_AsciiString& shapeIOR ) ;
82 Standard_EXPORT void ClearClientBuffer() ;
83 Standard_EXPORT unsigned int BufferLength() ;
88 TColStd_SequenceOfAsciiString myIORs ;
89 TopTools_SequenceOfShape myShapes ;