Mania++
 All Classes Functions Variables Pages
GbxParameter.h
1 #ifndef GBXPARAMETER_H_
2 #define GBXPARAMETER_H_
3 
4 #include <string>
5 #include <iostream>
6 #include <cxxabi.h>
7 
8 #include "GbxParameters.h"
9 #include "../../Utils/Parameter.h"
10 
11 //* GbxParameter
18 {
19 public:
25  GbxParameter(Parameter param);
26 
30  std::string GetXml();
31 
32 private:
33  std::string data;
34  std::string type;
35  std::string xmlType;
42  void determineType(const std::type_info* param);
43 
49  void dereferenceData(void* param);
50 };
51 
52 #endif // GBXPARAMETER_H_
GbxParameter(Parameter param)
Casts parameter to string and calls calculateType.
Definition: GbxParameter.cpp:3
std::string data
Stringified parameter.
Definition: GbxParameter.h:33
std::string xmlType
Stringified parameter type for XML.
Definition: GbxParameter.h:35
void determineType(const std::type_info *param)
Determines which XML-RPC type the parameter has.
Definition: GbxParameter.cpp:19
std::string GetXml()
Returns xml-fied parameter.
Definition: GbxParameter.cpp:9
void dereferenceData(void *param)
Converts the void pointer into the type determined in determineType.
Definition: GbxParameter.cpp:63
XML-fies the parameter for communication with the server.
Definition: GbxParameter.h:17
std::string type
Stringified parameter type for XML.
Definition: GbxParameter.h:34
Pointer and type information of a parameter.
Definition: Parameter.h:11