#include <librets/XmlMetadataParser.h>
Public Member Functions | |
XmlMetadataParser (MetadataElementCollectorPtr elementCollector, RetsErrorHandler *errorHandler) | |
void | SetElementFactory (XmlMetadataElementFactoryPtr elementFactory) |
void | SetEncoding (EncodingType encoding) |
Set the data encoding flag to allow for parsing of extended characters by Expat. | |
void | SetErrorHandler (RetsErrorHandler *errorHandler) |
Set the error handler. | |
void | Parse (istreamPtr inputStream) |
Parse the input stream for metadata. | |
virtual std::ostream & | Print (std::ostream &outputStream) const |
std::string | ToString () const |
virtual bool | Equals (const RetsObject *object) const |
XmlMetadataParser | ( | MetadataElementCollectorPtr | elementCollector, | |
RetsErrorHandler * | errorHandler | |||
) |
virtual bool Equals | ( | const RetsObject * | object | ) | const [virtual, inherited] |
void Parse | ( | istreamPtr | inputStream | ) |
Parse the input stream for metadata.
inputStream | The stream from which the metadata is to be parsed. |
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 SetElementFactory | ( | XmlMetadataElementFactoryPtr | elementFactory | ) |
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 | RETS_XML_DEFAULT_ENCODING, RETS_XML_ISO_ENCODING or RETS_XML_UTF8_ENCODING. |
void SetErrorHandler | ( | RetsErrorHandler * | errorHandler | ) |
std::string ToString | ( | ) | const [inherited] |