Version: 9.12.0
XAOPlugin_IOperations_i Class Reference

#include <XAOPlugin_IOperations_i.hh>

Inheritance diagram for XAOPlugin_IOperations_i:
Inheritance graph

Public Member Functions

 XAOPlugin_IOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, XAOPlugin_IOperations *theImpl)
 
 ~XAOPlugin_IOperations_i ()
 
CORBA::Boolean ExportXAO (GEOM::GEOM_Object_ptr shape, const GEOM::ListOfGO &groups, const GEOM::ListOfFields &fields, const char *author, 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_IOperationsGetOperations ()
 
- Public Member Functions inherited from GEOM_IOperations_i
 GEOM_IOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, ::GEOM_IOperations *theImpl)
 
 ~GEOM_IOperations_i ()
 
virtual CORBA::Boolean IsDone ()
 
virtual void SetErrorCode (const char *theErrorCode)
 
virtual char * GetErrorCode ()
 
virtual GEOM::GEOM_BaseObject_ptr GetBaseObject (Handle(::GEOM_BaseObject) theObject)
 
virtual void FinishOperation ()
 
virtual void AbortOperation ()
 
::GEOM_IOperationsGetImpl ()
 
virtual void UpdateGUIForObject (GEOM::GEOM_Object_ptr theObj)
 

Private Member Functions

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)
 

Constructor & Destructor Documentation

◆ XAOPlugin_IOperations_i()

XAOPlugin_IOperations_i::XAOPlugin_IOperations_i ( PortableServer::POA_ptr  thePOA,
GEOM::GEOM_Gen_ptr  theEngine,
XAOPlugin_IOperations theImpl 
)

constructor:

◆ ~XAOPlugin_IOperations_i()

XAOPlugin_IOperations_i::~XAOPlugin_IOperations_i ( )

destructor

Member Function Documentation

◆ exportXAO()

std::string XAOPlugin_IOperations_i::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 
)
private

Export a shape to XAO format

Parameters
shapeThe shape to export
groupsThe list of groups to export
fieldsThe list of fields to export
authorThe author of the export
toFileExport to file if true, otherwise export to memory buffer (the returned string)
fileNameThe name of the exported file
shapeFileNameIf not empty, save the BREP shape to this external file
Returns
string The exported buffer if toFile=false, otherwise an empty string

References XAOPlugin_IOperations::ExportXAO(), XAOPlugin_IOperations::ExportXAOMem(), GetOperations(), Handle(), and GEOM_IOperations::SetNotDone().

◆ ExportXAO()

CORBA::Boolean XAOPlugin_IOperations_i::ExportXAO ( GEOM::GEOM_Object_ptr  shape,
const GEOM::ListOfGO groups,
const GEOM::ListOfFields fields,
const char *  author,
const char *  fileName,
const char *  shapeFileName 
)

Export a shape to XAO format file

Parameters
shapeThe shape to export
groupsThe list of groups to export
fieldsThe list of fields to export
authorThe author of the export
fileNameThe name of the exported file
shapeFileNameIf not empty, save the BREP shape to this external file
Returns
boolean indicating if export was successful.

References exportXAO(), and GEOM_IOperations_i::IsDone().

◆ ExportXAOMem()

SALOMEDS::TMPFile * XAOPlugin_IOperations_i::ExportXAOMem ( GEOM::GEOM_Object_ptr  shape,
const GEOM::ListOfGO groups,
const GEOM::ListOfFields fields,
const char *  author 
)

Export a shape to XAO format buffer

Parameters
shapeThe shape to export
groupsThe list of groups to export
fieldsThe list of fields to export
authorThe author of the export
Returns
The output buffer

References exportXAO().

◆ GetOperations()

XAOPlugin_IOperations * XAOPlugin_IOperations_i::GetOperations ( )

◆ importXAO()

CORBA::Boolean XAOPlugin_IOperations_i::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 
)
private

Import a shape from XAO format

Parameters
isFileBoolean flag to switch between import from file or from buffer
fileNameThe name of the file to import from if isFile=true
theBuffThe buffer to import from if isFile=false
shapeThe imported shape
subShapesThe list of imported subShapes
groupsThe list of imported groups
fieldsThe list of imported fields
Returns
boolean indicating if import was successful.

References GEOM_IOperations_i::GetBaseObject(), GetOperations(), Handle(), XAOPlugin_IOperations::ImportXAO(), XAOPlugin_IOperations::ImportXAOMem(), GEOM_IOperations_i::IsDone(), and GEOM_IOperations::SetNotDone().

◆ ImportXAO()

CORBA::Boolean XAOPlugin_IOperations_i::ImportXAO ( const char *  fileName,
GEOM::GEOM_Object_out  shape,
GEOM::ListOfGO_out  subShapes,
GEOM::ListOfGO_out  groups,
GEOM::ListOfFields_out  fields 
)

Import a shape from XAO format

Parameters
fileNameThe name of the file to import
shapeThe imported shape
subShapesThe list of imported subShapes
groupsThe list of imported groups
fieldsThe list of imported fields
Returns
boolean indicating if import was successful.

References importXAO(), and GEOM_IOperations_i::IsDone().

◆ ImportXAOMem()

CORBA::Boolean XAOPlugin_IOperations_i::ImportXAOMem ( const SALOMEDS::TMPFile &  theBuff,
GEOM::GEOM_Object_out  shape,
GEOM::ListOfGO_out  subShapes,
GEOM::ListOfGO_out  groups,
GEOM::ListOfFields_out  fields 
)

Import a shape from XAO format memory buffer

Parameters
fileNameThe name of the file to import
shapeThe imported shape
subShapesThe list of imported subShapes
groupsThe list of imported groups
fieldsThe list of imported fields
Returns
boolean indicating if import was successful.

References importXAO(), and GEOM_IOperations_i::IsDone().


The documentation for this class was generated from the following files: