Version: 9.12.0
XAO::XaoExporter Class Reference

Util class for import/export XAO.

#include <XAO_XaoExporter.hxx>

Static Public Member Functions

static bool saveToFile (Xao *xaoObject, const std::string &fileName, const std::string &shapeFileName)
 Saves the XAO object to a file. More...
 
static const std::string saveToXml (Xao *xaoObject)
 Saves the XAO object to a XML string. More...
 
static bool readFromFile (const std::string &fileName, Xao *xaoObject)
 Reads a XAO object from a file. More...
 
static bool setXML (const std::string &xml, Xao *xaoObject)
 Reads a XAO object from an XML string. More...
 

Member Function Documentation

◆ readFromFile()

bool XaoExporter::readFromFile ( const std::string &  fileName,
Xao xaoObject 
)
static
Parameters
fileNamethe path of the file to read.
xaoObjectthe XAO object.
Returns
true if the XAO object was read successful, false otherwise.

◆ saveToFile()

bool XaoExporter::saveToFile ( Xao xaoObject,
const std::string &  fileName,
const std::string &  shapeFileName 
)
static
Parameters
xaoObjectthe object to export.
fileNamethe path of the file to create.
shapeFileNameif not empty save the shape in an this external file.
Returns
true if the export was successful, false otherwise.

◆ saveToXml()

const std::string XaoExporter::saveToXml ( Xao xaoObject)
static
Parameters
xaoObjectthe object to export.
Returns
the XML string.

◆ setXML()

bool XaoExporter::setXML ( const std::string &  xml,
Xao xaoObject 
)
static
Parameters
xmlthe XML string.
xaoObjectthe XAO object.
Returns
true if the XAO object was read successful, false otherwise.

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