#include <librets/ServerInfoResponse.h>
Public Member Functions | |
ServerInformationResponse () | |
Default constructor. | |
virtual | ~ServerInformationResponse () |
void | Parse (istreamPtr inputStream) |
Parse the Server Information Response. | |
const StringVector | GetParameters () |
Returns the parameter names. | |
std::string | GetResource (std::string parameterName) |
Returns the resource name of a parameter as a string. | |
std::string | GetClass (std::string parameterName) |
Returns the class name of a parameter as a string. | |
std::string | GetValue (std::string parameterName) |
Returns the value of a parameter as a string. | |
void | SetEncoding (EncodingType encoding) |
Set the data encoding flag to allow for parsing of extended characters by Expat. | |
EncodingType | GetEncoding () |
Get the current value for the data encoding flag. | |
int | GetReplyCode () |
Returns the RETS-STATUS ReplyCode. | |
std::string | GetReplyText () |
Returns the RETS-STATUS ReplyText. | |
void | SetInputStream (istreamPtr inputStream) |
Set the input stream for Parse. | |
virtual std::ostream & | Print (std::ostream &outputStream) const |
std::string | ToString () const |
virtual bool | Equals (const RetsObject *object) const |
Default constructor.
virtual ~ServerInformationResponse | ( | ) | [virtual] |
virtual bool Equals | ( | const RetsObject * | object | ) | const [virtual, inherited] |
std::string GetClass | ( | std::string | parameterName | ) |
Returns the class name of a parameter as a string.
parameterName | parameter name |
EncodingType GetEncoding | ( | ) |
Get the current value for the data encoding flag.
const StringVector GetParameters | ( | ) |
Returns the parameter names.
int GetReplyCode | ( | ) |
Returns the RETS-STATUS ReplyCode.
std::string GetReplyText | ( | ) |
Returns the RETS-STATUS ReplyText.
std::string GetResource | ( | std::string | parameterName | ) |
Returns the resource name of a parameter as a string.
parameterName | parameter name |
std::string GetValue | ( | std::string | parameterName | ) |
Returns the value of a parameter as a string.
parameterName | parameter name |
void Parse | ( | istreamPtr | inputStream | ) |
Parse the Server Information Response.
inputStream | The stream containing the response to be parsed. |
RetsReplyException |
virtual std::ostream& Print | ( | std::ostream & | outputStream | ) | const [virtual, inherited] |
Reimplemented in CapabilityUrls, DefaultMetadataCollector, DmqlQuery, FieldCriterion, GetObjectQuery, JunctionCriterion, LiteralCriterion, LookupCriterion, MetadataElement, NotCriterion, RetsXmlAttribute, RetsXmlEndDocumentEvent, RetsXmlEndElementEvent, RetsXmlStartElementEvent, RetsXmlTextEvent, and Uri.
void SetEncoding | ( | EncodingType | encoding | ) |
Set the data encoding flag to allow for parsing of extended characters by Expat.
RETS is officially US-ASCII, but this will allow a work around for servers that haven't properly sanitized their data.
encoding | Either RETS_XML_DEFAULT_ENCODING, RETS_XML_ISO_ENCODING or RETS_XML_UTF8_ENCODING. |
void SetInputStream | ( | istreamPtr | inputStream | ) |
Set the input stream for Parse.
inputStream | Input Stream |
std::string ToString | ( | ) | const [inherited] |