Utilities class to convert types.
#include <XAO_XaoUtils.hxx>
◆ booleanToString()
| std::string XaoUtils::booleanToString |
( |
bool |
value | ) |
|
|
static |
- Parameters
-
| value | the boolean to convert. |
- Returns
- the string.
◆ dimensionToString()
◆ doubleToString()
| std::string XaoUtils::doubleToString |
( |
double |
value | ) |
|
|
static |
- Parameters
-
| value | the double to convert. |
- Returns
- the string.
◆ fieldTypeToString()
| std::string XaoUtils::fieldTypeToString |
( |
XAO::Type |
type | ) |
|
|
static |
◆ intToString()
| std::string XaoUtils::intToString |
( |
int |
value | ) |
|
|
static |
- Parameters
-
| value | the integer to convert. |
- Returns
- the string.
◆ shapeFormatToString()
| std::string XaoUtils::shapeFormatToString |
( |
XAO::Format |
format | ) |
|
|
static |
- Parameters
-
| format | the Format to convert. |
- Returns
- the Format as a string.
- Exceptions
-
References XAO::BREP, and XAO::STEP.
◆ stringToBoolean()
| bool XaoUtils::stringToBoolean |
( |
const std::string & |
value | ) |
|
|
static |
- Parameters
-
| value | the string to convert. |
- Returns
- the boolean value.
- Exceptions
-
- Note
- accepted values are "true", "1", "false", "0".
◆ stringToDimension()
| XAO::Dimension XaoUtils::stringToDimension |
( |
const std::string & |
dimension | ) |
|
|
static |
◆ stringToDouble()
| double XaoUtils::stringToDouble |
( |
const std::string & |
value | ) |
|
|
static |
- Parameters
-
| value | the string to convert. |
- Returns
- the double value.
- Exceptions
-
◆ stringToFieldType()
| XAO::Type XaoUtils::stringToFieldType |
( |
const std::string & |
type | ) |
|
|
static |
◆ stringToInt()
| int XaoUtils::stringToInt |
( |
const std::string & |
value | ) |
|
|
static |
- Parameters
-
| value | the string to convert. |
- Returns
- the integer value.
- Exceptions
-
◆ stringToShapeFormat()
| XAO::Format XaoUtils::stringToShapeFormat |
( |
const std::string & |
format | ) |
|
|
static |
- Parameters
-
| format | the Format as a string. |
- Returns
- the converted Format.
- Exceptions
-
References XAO::BREP, and XAO::STEP.
The documentation for this class was generated from the following files: