Mania++
 All Classes Functions Variables Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GbxParameter Class Reference

XML-fies the parameter for communication with the server. More...

#include <GbxParameter.h>

Public Member Functions

 GbxParameter (GbxParam param)
 Casts parameter to string and calls calculateType. More...
 
std::string GetXml ()
 Returns xml-fied parameter.
 

Private Member Functions

void determineType (const std::type_info *param)
 Determines which XML-RPC type the parameter has. More...
 
void dereferenceData (void *param)
 Converts the void pointer into the type determined in determineType. More...
 

Private Attributes

std::string data
 Stringified parameter.
 
std::string type
 Stringified parameter type for XML.
 
std::string xmlType
 Stringified parameter type for XML.
 

Detailed Description

XML-fies the parameter for communication with the server.

Todo:
Handle structs.

Constructor & Destructor Documentation

GbxParameter::GbxParameter ( GbxParam  param)

Casts parameter to string and calls calculateType.

Parameters
paramParameter to be xml-fied.

Member Function Documentation

void GbxParameter::dereferenceData ( void *  param)
private

Converts the void pointer into the type determined in determineType.

Parameters
paramVoid pointer to parameter.
void GbxParameter::determineType ( const std::type_info *  param)
private

Determines which XML-RPC type the parameter has.

Parameters
paramType information about the parameter.

The documentation for this class was generated from the following files: