Util class for import/export XAO.
#include <XAO_XaoExporter.hxx>
|
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...
|
|
const bool XaoExporter::readFromFile |
( |
const std::string & |
fileName, |
|
|
Xao * |
xaoObject |
|
) |
| throw (XAO_Exception) |
|
static |
- Parameters
-
fileName | the path of the file to read. |
xaoObject | the 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
-
xaoObject | the object to export. |
fileName | the path of the file to create. |
shapeFileName | if 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
-
xaoObject | the object to export. |
- Returns
- the XML string.
const bool XaoExporter::setXML |
( |
const std::string & |
xml, |
|
|
Xao * |
xaoObject |
|
) |
| throw (XAO_Exception) |
|
static |
- Parameters
-
xml | the XML string. |
xaoObject | the 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: