Utilities class to convert types.
#include <XAO_XaoUtils.hxx>
Static Public Member Functions | |
static const std::string | intToString (const int &value) |
Converts an integer into a string. More... | |
static const int | stringToInt (const std::string &value) throw (XAO_Exception) |
Converts a string into an integer. More... | |
static const std::string | doubleToString (const double &value) |
Converts a double into a string. More... | |
static const double | stringToDouble (const std::string &value) throw (XAO_Exception) |
Converts a string into a double. More... | |
static const std::string | booleanToString (const bool &value) |
Converts a boolean into a string. More... | |
static const bool | stringToBoolean (const std::string &value) throw (XAO_Exception) |
Converts a string into a boolean. More... | |
static const std::string | dimensionToString (const XAO::Dimension &dimension) throw (XAO_Exception) |
Converts a Dimension to string. More... | |
static const XAO::Dimension | stringToDimension (const std::string &dimension) throw (XAO_Exception) |
Converts a string into a Dimension. More... | |
static const std::string | fieldTypeToString (const XAO::Type &type) throw (XAO_Exception) |
Converts a Type to string. More... | |
static const XAO::Type | stringToFieldType (const std::string &type) throw (XAO_Exception) |
Converts a string into a Type. More... | |
static const std::string | shapeFormatToString (const XAO::Format &format) throw (XAO_Exception) |
Converts a Format to string. More... | |
static const XAO::Format | stringToShapeFormat (const std::string &format) throw (XAO_Exception) |
Converts a string into a Format. More... | |
|
static |
value | the boolean to convert. |
|
static |
dimension | the Dimension to convert. |
XAO_Exception |
References XAO::EDGE, XAO::FACE, XAO::SOLID, XAO::VERTEX, and XAO::WHOLE.
|
static |
value | the double to convert. |
|
static |
type | the Type to convert. |
XAO_Exception |
References XAO::BOOLEAN, XAO::DOUBLE, XAO::INTEGER, and XAO::STRING.
|
static |
value | the integer to convert. |
|
static |
|
static |
value | the string to convert. |
XAO_Exception | if value cannot be converted to boolean. |
|
static |
dimension | the dimension as a string. |
XAO_Exception | if dimension cannot be converted. |
References XAO::EDGE, XAO::FACE, XAO::SOLID, XAO::VERTEX, and XAO::WHOLE.
|
static |
value | the string to convert. |
XAO_Exception | if value cannot be converted to string. |
|
static |
type | the Type as a string. |
XAO_Exception | if type cannot be converted. |
References XAO::BOOLEAN, XAO::DOUBLE, XAO::INTEGER, and XAO::STRING.
|
static |
value | the string to convert. |
XAO_Exception | if value cannot be converted to string. |
|
static |
format | the Format as a string. |
XAO_Exception | if format cannot be converted. |