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
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 );
};
};