Salome HOME
Implementation of [bos #35140] [EDF] (2023-T1) Memory communication between SHAPER...
[modules/geom.git] / src / XAOPlugin / XAOPlugin_IOperations_i.hh
index eb5bd721fa1190296440ab9861b0847f2b01f11b..a34b009130e094ba611a80b8660dd4d84b73cf8c 100644 (file)
@@ -50,13 +50,41 @@ public:
                             const char* fileName,
                             const char* shapeFileName );
 
+  SALOMEDS::TMPFile* ExportXAOMem( GEOM::GEOM_Object_ptr shape,
+                            const GEOM::ListOfGO& groups,
+                            const GEOM::ListOfFields& fields,
+                            const char* author );
+
   CORBA::Boolean ImportXAO( const char* fileName,
                             GEOM::GEOM_Object_out shape,
                             GEOM::ListOfGO_out subShapes,
                             GEOM::ListOfGO_out groups,
                             GEOM::ListOfFields_out fields );
 
+  CORBA::Boolean ImportXAOMem( const SALOMEDS::TMPFile& theBuff,
+                               GEOM::GEOM_Object_out shape,
+                               GEOM::ListOfGO_out subShapes,
+                               GEOM::ListOfGO_out groups,
+                               GEOM::ListOfFields_out fields );
+
   XAOPlugin_IOperations* GetOperations();
+
+private:
+  std::string exportXAO( GEOM::GEOM_Object_ptr shape,
+                         const GEOM::ListOfGO& groups,
+                         const GEOM::ListOfFields& fields,
+                         const char* author,
+                         const bool  toFile,
+                         const char* fileName,
+                         const char* shapeFileName );
+
+  CORBA::Boolean importXAO( const bool isFile,
+                            const char* fileName,
+                            const SALOMEDS::TMPFile& theBuff,
+                            GEOM::GEOM_Object_out shape,
+                            GEOM::ListOfGO_out subShapes,
+                            GEOM::ListOfGO_out groups,
+                            GEOM::ListOfFields_out fields );
 };
 
 #endif