XmlMetadataParser Class Reference

(Internal) XmlMetadataParser is the primary class for parsing metadata. More...

#include <librets/XmlMetadataParser.h>

Inheritance diagram for XmlMetadataParser:

RetsObject

List of all members.

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


Detailed Description

(Internal) XmlMetadataParser is the primary class for parsing metadata.

Constructor & Destructor Documentation

XmlMetadataParser ( MetadataElementCollectorPtr  elementCollector,
RetsErrorHandler errorHandler 
)


Member Function Documentation

virtual bool Equals ( const RetsObject object  )  const [virtual, inherited]

void Parse ( istreamPtr  inputStream  ) 

Parse the input stream for metadata.

Parameters:
inputStream The stream from which the metadata is to be parsed.

virtual std::ostream& Print ( std::ostream &  outputStream  )  const [virtual, inherited]

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.

Parameters:
encoding RETS_XML_DEFAULT_ENCODING, RETS_XML_ISO_ENCODING or RETS_XML_UTF8_ENCODING.

void SetErrorHandler ( RetsErrorHandler errorHandler  ) 

Set the error handler.

Parameters:
errorHandler The RetsErrorHandler pointer

std::string ToString (  )  const [inherited]


Generated by  doxygen