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 
10 //* GbxParameter
17 {
18 public:
24  GbxParameter(GbxParam param);
25 
29  std::string GetXml();
30 
31 private:
32  std::string data;
33  std::string type;
34  std::string xmlType;
41  void determineType(const std::type_info* param);
42 
48  void dereferenceData(void* param);
49 };
50 
51 #endif // GBXPARAMETER_H_
std::string data
Stringified parameter.
Definition: GbxParameter.h:32
GbxParameter(GbxParam param)
Casts parameter to string and calls calculateType.
Definition: GbxParameter.cpp:3
std::string xmlType
Stringified parameter type for XML.
Definition: GbxParameter.h:34
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:16
std::string type
Stringified parameter type for XML.
Definition: GbxParameter.h:33
Pointer and type information of a parameter.
Definition: GbxParameters.h:13