1 #ifndef XML_PARAMETER_EXTRACTOR_H 2 #define XML_PARAMETER_EXTRACTOR_H 7 enum class ParameterDataType{BOOLEAN, CHAR, UCHAR, INT, UINT, LONG,
8 ULONG, FLOAT, DOUBLE, QSTRING};
13 static bool getParameterStringValue(
const QDomNode &rootNode,
const QString ¶meterName,
14 QString &outParameter, QDomNode ¶meterNode);
15 template <
class typeData>
16 static bool getParameterValue(
const QDomNode &rootNode,
const QString ¶meterLabel,
17 typeData &outParameter);
18 template <
class typeData>
19 static bool getParameterValue(
const QDomNode &rootNode,
const QString ¶meterLabel,
20 typeData &outParameter, QDomNode ¶meterNode);
23 static void convertQStringTo(
const QString &inValue,
bool &outValue);
24 static void convertQStringTo(
const QString &inValue,
char &outValue);
25 static void convertQStringTo(
const QString &inValue, uchar &outValue);
26 static void convertQStringTo(
const QString &inValue,
int &outValue);
27 static void convertQStringTo(
const QString &inValue, uint &outValue);
28 static void convertQStringTo(
const QString &inValue,
long &outValue);
29 static void convertQStringTo(
const QString &inValue, ulong &outValue);
30 static void convertQStringTo(
const QString &inValue,
float &outValue);
31 static void convertQStringTo(
const QString &inValue,
double &outValue);
33 static ParameterDataType getType (
const bool &inValue);
34 static ParameterDataType getType (
const char &inValue);
35 static ParameterDataType getType (
const uchar &inValue);
36 static ParameterDataType getType (
const int &inValue);
37 static ParameterDataType getType (
const uint &inValue);
38 static ParameterDataType getType (
const long &inValue);
39 static ParameterDataType getType (
const ulong &inValue);
40 static ParameterDataType getType (
const float &inValue);
41 static ParameterDataType getType (
const double &inValue);
42 static ParameterDataType getType (
const QString &inValue);
47 #endif // XML_PARAMETER_EXTRACTOR_H