Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
XAO::XaoExporter Class Reference

Util class for import/export XAO.

#include <XAO_XaoExporter.hxx>

Static Public Member Functions

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

Member Function Documentation

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

References NULL.

const bool XaoExporter::saveToFile ( Xao xaoObject,
const std::string &  fileName,
const std::string &  shapeFileName 
) throw (XAO_Exception)
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.
const std::string XaoExporter::saveToXml ( Xao xaoObject) throw (XAO_Exception)
static
Parameters
xaoObjectthe object to export.
Returns
the XML string.
const bool XaoExporter::setXML ( const std::string &  xml,
Xao xaoObject 
) throw (XAO_Exception)
static
Parameters
xmlthe XML string.
xaoObjectthe XAO object.
Returns
true if the XAO object was read successful, false otherwise.

References NULL.


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