26 #ifndef _GEOM_Client_HeaderFile
27 #define _GEOM_Client_HeaderFile
29 #include <SALOMEconfig.h>
30 #include CORBA_SERVER_HEADER(GEOM_Gen)
33 #undef HAVE_FINITE // E.A. fix a warning about redefinition of HAVE_FINITE in re-inclusion of Standard_values.h
35 #ifndef _TColStd_SequenceOfAsciiString_HeaderFile
36 #include <TColStd_SequenceOfAsciiString.hxx>
38 #ifndef _TopTools_SequenceOfShape_HeaderFile
39 #include <TopTools_SequenceOfShape.hxx>
41 #ifndef _Standard_Integer_HeaderFile
42 #include <Standard_Integer.hxx>
45 class TCollection_AsciiString;
48 #ifndef _Standard_HeaderFile
49 #include <Standard.hxx>
51 #ifndef _Standard_Macro_HeaderFile
52 #include <Standard_Macro.hxx>
56 #if defined GEOMCLIENT_EXPORTS || defined GEOMClient_EXPORTS
57 #define GEOMCLIENT_EXPORT __declspec( dllexport )
59 #define GEOMCLIENT_EXPORT __declspec( dllimport )
62 #define GEOMCLIENT_EXPORT
65 #include <TCollection_AsciiString.hxx>
66 #include <TopoDS_Shape.hxx>
85 inline void*
operator new(size_t,
void* anAddress)
89 inline void*
operator new(
size_t size)
91 return Standard::Allocate(size);
93 inline void operator delete(
void *anAddress)
95 if (anAddress) Standard::Free((Standard_Address&)anAddress);
106 Standard_Boolean Find(
const TCollection_AsciiString& IOR, TopoDS_Shape& S ) ;
108 Standard_Boolean Find(
const TopoDS_Shape& S, TCollection_AsciiString& IOR ) ;
110 void Bind(
const TCollection_AsciiString& IOR,
const TopoDS_Shape& S ) ;
112 TopoDS_Shape GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_ptr aShape );
114 void RemoveShapeFromBuffer(
const TCollection_AsciiString& IOR ) ;
116 void ClearClientBuffer() ;
118 unsigned int BufferLength() ;
119 TopoDS_Shape Load( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_ptr aShape);
129 std::map< TCollection_AsciiString , std::vector<TopoDS_Shape> >
_mySubShapes;
135 #define SHAPE_READER(obj) GEOM_Client& obj=GEOM_Client::get_client()
137 #define SHAPE_READER(obj) GEOM_Client obj