1 // File : GEOM_Client.hxx
3 // Author : Yves FRICAUD
6 // Copyright : Open CASCADE
9 #ifndef _GEOM_Client_HeaderFile
10 #define _GEOM_Client_HeaderFile
12 #include <SALOMEconfig.h>
13 #include CORBA_SERVER_HEADER(GEOM_Shape)
14 #include CORBA_SERVER_HEADER(GEOM_Gen)
16 #ifndef _TColStd_SequenceOfAsciiString_HeaderFile
17 #include <TColStd_SequenceOfAsciiString.hxx>
19 #ifndef _TopTools_SequenceOfShape_HeaderFile
20 #include <TopTools_SequenceOfShape.hxx>
22 #ifndef _Standard_Integer_HeaderFile
23 #include <Standard_Integer.hxx>
25 class TCollection_AsciiString;
29 #ifndef _Standard_HeaderFile
30 #include <Standard.hxx>
32 #ifndef _Standard_Macro_HeaderFile
33 #include <Standard_Macro.hxx>
36 //=====================================================================
37 // GEOM_Client : class definition
38 //=====================================================================
43 inline void* operator new(size_t,void* anAddress)
47 inline void* operator new(size_t size)
49 return Standard::Allocate(size);
51 inline void operator delete(void *anAddress)
53 if (anAddress) Standard::Free((Standard_Address&)anAddress);
57 Standard_EXPORT GEOM_Client();
58 Standard_EXPORT Standard_Integer Find( const TCollection_AsciiString& ShapeIOR, TopoDS_Shape& S ) ;
59 Standard_EXPORT void Bind( const TCollection_AsciiString& ShapeIOR, const TopoDS_Shape& S ) ;
60 Standard_EXPORT TopoDS_Shape GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Shape_ptr aShape );
61 Standard_EXPORT void RemoveShapeFromBuffer( const TCollection_AsciiString& shapeIOR ) ;
62 Standard_EXPORT void ClearClientBuffer() ;
63 Standard_EXPORT unsigned int BufferLength() ;
68 TColStd_SequenceOfAsciiString myIORs ;
69 TopTools_SequenceOfShape myShapes ;