Salome HOME
add XAO import and modify export
[modules/geom.git] / src / GEOM_I / GEOM_IImportExportOperations_i.hh
1 // Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
19 #ifndef _GEOM_IImportExportOperations_i_HeaderFile
20 #define _GEOM_IImportExportOperations_i_HeaderFile
21
22 #include "GEOMImpl_Gen.hxx"
23
24 #include <SALOMEconfig.h>
25
26 #include CORBA_SERVER_HEADER(GEOM_Gen)
27 #include "GEOM_IOperations_i.hh"
28 #include "GEOM_Object_i.hh"
29
30 #include "GEOMImpl_IImportExportOperations.hxx"
31
32 class GEOM_I_EXPORT GEOM_IImportExportOperations_i :
33 public virtual POA_GEOM::GEOM_IImportExportOperations,
34 public virtual GEOM_IOperations_i
35 {
36 public:
37     GEOM_IImportExportOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
38             ::GEOMImpl_IImportExportOperations* theImpl);
39     ~GEOM_IImportExportOperations_i();
40
41     CORBA::Boolean ExportXAO (GEOM::GEOM_Object_ptr shape,
42             const GEOM::ListOfGO& groups,
43             const GEOM::ListOfGO& fields,
44             const char* author,
45             const char* fileName);
46     CORBA::Boolean ImportXAO (const char* fileName,
47             GEOM::GEOM_Object_out shape,
48             GEOM::ListOfGO_out groups,
49             GEOM::ListOfGO_out fields);
50     /*@@ insert new functions before this line @@ do not remove this line @@*/
51
52     ::GEOMImpl_IImportExportOperations* GetOperations()
53     {   return (::GEOMImpl_IImportExportOperations*)GetImpl();}
54 };
55
56 #endif