XMLBEANSXX  0.9.8
xmlbeansxx::XercesParser Class Reference

#include <XercesParser.h>

Inheritance diagram for xmlbeansxx::XercesParser:
Collaboration diagram for xmlbeansxx::XercesParser:

List of all members.

Public Member Functions

 XercesParser ()
 XercesParser (const XmlOptions &opts)
virtual ~XercesParser ()
virtual void parse (std::istream &in, XmlObject &documentRoot)
virtual void parse (const std::string &in, XmlObject &documentRoot)
virtual void loadGrammars (const std::vector< std::string > &fileNames)
virtual void loadGrammar (const std::string &fileName)
virtual void unloadGrammars ()

Private Member Functions

 XMLBEANSXX_STATIC_LOGGER_PTR (log)
void init (bool reinit=false)
void updateOptions ()

Private Attributes

std::auto_ptr
< XERCES_CPP_NAMESPACE::SAX2XMLReader > 
sax2
std::auto_ptr< MySAX2Handlerhandler
std::auto_ptr
< xercesc::XMLGrammarPool > 
grammarPool
Transcoder transcoder

Friends

class MySAX2Handler

Constructor & Destructor Documentation


Member Function Documentation

void xmlbeansxx::XercesParser::init ( bool  reinit = false) [private]
void xmlbeansxx::XercesParser::loadGrammar ( const std::string &  fileName) [virtual]

Loads grammar into memory from specified file name

Implements xmlbeansxx::XmlParser.

void xmlbeansxx::XercesParser::loadGrammars ( const std::vector< std::string > &  fileNames) [virtual]

Loads grammars into memory from specified file names

Implements xmlbeansxx::XmlParser.

virtual void xmlbeansxx::XercesParser::parse ( std::istream &  in,
XmlObject documentRoot 
) [virtual]

Parses using some parser an xml document from std::istream to some XmlDocument. If XmlOptions validation is set, then uses schema validator (apropriate grammars should be loaded using eg. loadGrammar method).

Implements xmlbeansxx::XmlParser.

void xmlbeansxx::XercesParser::parse ( const std::string &  in,
XmlObject documentRoot 
) [virtual]

Implements xmlbeansxx::XmlParser.

Unloads all grammars from memory

Implements xmlbeansxx::XmlParser.


Friends And Related Function Documentation

friend class MySAX2Handler [friend]

Member Data Documentation

std::auto_ptr<xercesc::XMLGrammarPool> xmlbeansxx::XercesParser::grammarPool [private]
std::auto_ptr<XERCES_CPP_NAMESPACE::SAX2XMLReader> xmlbeansxx::XercesParser::sax2 [private]

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