Response from server, de-XML-fies the response. More...
#include <GbxResponse.h>
Public Member Functions | |
GbxError | GetFault () |
void | SetRaw (std::string response) |
Sets the raw message value. More... | |
std::string | GetRaw () |
Returns raw response (XML). | |
std::vector< GbxResponseParameter > | GetParameters () |
Returns the extracted parameters. | |
Protected Member Functions | |
GbxResponseParameter | extractParam (pugi::xml_node param) |
Extracts parameters from the raw data (XML). | |
Protected Attributes | |
std::string | data |
Raw response data. | |
std::vector< GbxResponseParameter > | parameters = std::vector<GbxResponseParameter>() |
List of parameters. | |
Private Member Functions | |
void | extractParameters () |
Extracts parameters from the raw data (XML). | |
Private Attributes | |
GbxError | fault = GbxError() |
Current fault (error). | |
Response from server, de-XML-fies the response.
GbxError GbxResponse::GetFault | ( | ) |
Returns whether the response is a fault.
void GbxResponse::SetRaw | ( | std::string | response | ) |
Sets the raw message value.
response | Raw response from server (XML). |