Salome HOME
Implementation of [bos #35140] [EDF] (2023-T1) Memory communication between SHAPER...
[modules/geom.git] / idl / XAOPlugin.idl
index 08e81fc54af7b4cf6c141ce7c191526b7e7862a6..75a44f94aadc6e2efc0e60c509ce6bce242f70f3 100644 (file)
@@ -46,6 +46,19 @@ module GEOM
                        in string fileName,
                        in string shapeFileName );
     
+    /*!
+     *  Export a shape to XAO format in a byte array
+     *  \param shape The shape to export
+     *  \param groups The list of groups to export
+     *  \param fields The list of fields to export
+     *  \param author The author of the export
+     *  \return Byte array with exported data.
+     */
+    SALOMEDS::TMPFile ExportXAOMem( in GEOM::GEOM_Object shape,
+                                    in GEOM::ListOfGO groups, 
+                                    in GEOM::ListOfFields fields,
+                                    in string author );
+    
     /*!
      *  Import a shape from XAO format
      *  \param fileName The name of the file to import
@@ -60,6 +73,21 @@ module GEOM
                        out GEOM::ListOfGO subShapes, 
                        out GEOM::ListOfGO groups, 
                        out GEOM::ListOfFields fields );
+    
+    /*!
+     *  Import a shape from XAO format byte array
+     *  \param theBuff The byte array with data in XAO format
+     *  \param shape The imported shape
+     *  \param subShapes The list of imported subShapes
+     *  \param groups The list of imported groups
+     *  \param fields The list of imported fields
+     *  \return boolean indicating if import was successful.
+     */
+    boolean ImportXAOMem( in SALOMEDS::TMPFile theBuff,
+                          out GEOM::GEOM_Object shape,
+                          out GEOM::ListOfGO subShapes, 
+                          out GEOM::ListOfGO groups, 
+                          out GEOM::ListOfFields fields );
   };
 };