1 #ifndef user_Params_Reader_h
2 #define user_Params_Reader_h
4 #define staticStringConstant(name) \
5 static const std::string _##name = # name
7 #include <baseCommands.h>
15 enum SerializedDataType {
16 SerializedDataType_character,
17 SerializedDataType_int16,
18 SerializedDataType_int32,
19 SerializedDataType_int64,
20 SerializedDataType_string
23 namespace StringDataTypes {
25 staticStringConstant(UINT64);
26 staticStringConstant(INT64);
27 staticStringConstant(FLOAT);
28 staticStringConstant(TIMER);
29 staticStringConstant(BOOL);
30 staticStringConstant(COMBO);
31 staticStringConstant(UCHAR);
32 staticStringConstant(RADIO);
52 SerializedDataType type) :
90 static std::string
symbol();
96 static std::string
params();
102 static std::string
other();
120 static bool isComment(std::string &line);
127 static bool isLabel(std::string &line);
134 static bool isSpace(std::string &line);
141 static bool isSymbol(std::string &line);
148 static bool isParams(std::string &line);
155 static bool isOther(std::string &line);
169 static BaseTypeVector
getBaseTypeVector(
const std::vector<KeyValue> &vectorGuiTemplate);
176 static std::vector<KeyValue>
190 static int compareBeg(
const std::string &s1,
const std::string &s2);
The KeyValue struct.
Definition: userParamsReader.h:40
std::string _label
_label
Definition: userParamsReader.h:63
std::string _value
_value
Definition: userParamsReader.h:73
static std::string symbol()
symbol
static std::vector< KeyValue > getVectorGuiTemplate(const std::string &frontendDesign)
getVectorGuiTemplate
static BaseTypeVector getBaseTypeVector(const std::string &frontendDesign)
getBaseTypeVector
static std::string seperator()
seperator
static bool isLabel(std::string &line)
isLabel
The UserParamsReader class.
Definition: userParamsReader.h:84
KeyValue(std::string label, std::string key, std::string value, SerializedDataType type)
KeyValue.
Definition: userParamsReader.h:49
static bool isComment(std::string &line)
isComment
std::string _key
_key
Definition: userParamsReader.h:68
static int compareBeg(const std::string &s1, const std::string &s2)
compareBeg
static bool isSpace(std::string &line)
isSpace
static bool isSymbol(std::string &line)
isSymbol
static std::string params()
params
static bool isOther(std::string &line)
isOther
SerializedDataType _type
_type
Definition: userParamsReader.h:78
static void setSerializedDataType(std::vector< KeyValue > &vectorGuiTemplate)
setSerializedDataType
static bool isParams(std::string &line)
isParams
static std::string stretch()
stretch
static std::string other()
other