21 #ifndef __XAO_UTILS_HXX__
22 #define __XAO_UTILS_HXX__
32 #pragma warning(disable:4290)
81 static std::string intToString(
int value);
89 static int stringToInt(
const std::string& value);
96 static std::string doubleToString(
double value);
103 static double stringToDouble(
const std::string& value);
110 static std::string booleanToString(
bool value);
118 static bool stringToBoolean(
const std::string& value);
134 static XAO::Dimension stringToDimension(
const std::string& dimension);
142 static std::string fieldTypeToString(
XAO::Type type);
150 static XAO::Type stringToFieldType(
const std::string& type);
158 static std::string shapeFormatToString(
XAO::Format format);
166 static XAO::Format stringToShapeFormat(
const std::string& format);
183 template <
typename T>
193 operator const char*()
const {
return m_stream.str().c_str(); }
#define XAO_EXPORT
Definition: XAO.hxx:31
MsgBuilder can be use to easily create messages.
Definition: XAO_XaoUtils.hxx:174
MsgBuilder()
Constructor.
Definition: XAO_XaoUtils.hxx:177
std::stringstream m_stream
Definition: XAO_XaoUtils.hxx:197
~MsgBuilder()
Destructor.
Definition: XAO_XaoUtils.hxx:179
MsgBuilder & operator<<(const T &t)
Stream operator.
Definition: XAO_XaoUtils.hxx:184
Utilities class to convert types.
Definition: XAO_XaoUtils.hxx:74
Definition: BrepGeometryTest.hxx:26
Dimension
Definition: XAO_XaoUtils.hxx:50
@ SOLID
SOLID.
Definition: XAO_XaoUtils.hxx:54
@ FACE
FACE.
Definition: XAO_XaoUtils.hxx:53
@ EDGE
EDGE.
Definition: XAO_XaoUtils.hxx:52
@ VERTEX
VERTEX.
Definition: XAO_XaoUtils.hxx:51
@ WHOLE
WHOLE.
Definition: XAO_XaoUtils.hxx:55
Format
Definition: XAO_XaoUtils.hxx:41
@ STEP
Definition: XAO_XaoUtils.hxx:43
@ BREP
Definition: XAO_XaoUtils.hxx:42
Type
Definition: XAO_XaoUtils.hxx:62
@ INTEGER
INTEGER.
Definition: XAO_XaoUtils.hxx:64
@ BOOLEAN
BOOLEAN.
Definition: XAO_XaoUtils.hxx:63
@ STRING
STRING.
Definition: XAO_XaoUtils.hxx:66
@ DOUBLE
DOUBLE.
Definition: XAO_XaoUtils.hxx:65