Salome HOME
953cf3e79cd2c0c6dc9bfd99327ea80f870aa66a
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IInsertOperations.hxx
1
2 #ifndef _GEOMImpl_IInsertOperations_HXX_
3 #define _GEOMImpl_IInsertOperations_HXX_
4
5 #include "Utils_SALOME_Exception.hxx"
6 #include "GEOM_IOperations.hxx"
7 #include "GEOM_Engine.hxx"
8 #include "GEOM_Object.hxx"
9 #include <TDocStd_Document.hxx>
10 #include <TColStd_HSequenceOfAsciiString.hxx>
11 #include <TCollection_HAsciiString.hxx>
12 #include <Resource_Manager.hxx>
13
14 class GEOMImpl_IInsertOperations : public GEOM_IOperations {
15  public:
16   GEOMImpl_IInsertOperations(GEOM_Engine* theEngine, int theDocID);
17   ~GEOMImpl_IInsertOperations();
18
19
20   Handle(GEOM_Object) MakeCopy (Handle(GEOM_Object) theOriginal);
21   
22   Handle(GEOM_Object) Import (const char* theFileName, const char* theFormatType);
23   
24   void Export (const Handle(GEOM_Object) theOriginal,
25                const char*               theFileName,
26                const char*               theFormatType);
27
28   Standard_Boolean ImportTranslators (Handle(TColStd_HSequenceOfAsciiString)& theFormats,
29                                       Handle(TColStd_HSequenceOfAsciiString)& thePatterns);
30
31   Standard_Boolean ExportTranslators (Handle(TColStd_HSequenceOfAsciiString)& theFormats,
32                                       Handle(TColStd_HSequenceOfAsciiString)& thePatterns);
33
34   Standard_Boolean IsSupported (const Standard_Boolean isImport,
35                                 const TCollection_AsciiString theFormat,
36                                 Handle(TCollection_HAsciiString)& theLibName);
37
38  private:
39   Standard_Boolean InitResMgr ();
40
41  private:
42   Handle(Resource_Manager) myResMgr;
43 };
44
45 #endif