21 #ifndef __XAO_UTILS_HXX__
22 #define __XAO_UTILS_HXX__
29 #include "XAO_Exception.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);
126 static std::string dimensionToString(XAO::Dimension dimension);
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(); }
197 std::stringstream m_stream;
MsgBuilder can be use to easily create messages.
Definition: XAO_XaoUtils.hxx:174
MsgBuilder()
Constructor.
Definition: XAO_XaoUtils.hxx:177
~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