Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

xmlpp::Parser Class Reference

XML parser. More...

Inheritance diagram for xmlpp::Parser:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Parser ()
virtual ~Parser ()
virtual void set_validate (bool val=true)
virtual bool get_validate () const
virtual void parse_file (const std::string &filename)=0
virtual void parse_memory (const std::string &contents)=0
virtual void parse_stream (std::istream &in)=0

Protected Member Functions

virtual void initialize_context ()
virtual void release_underlying ()
virtual void on_validity_error (const std::string &message)
virtual void on_validity_warning (const std::string &message)
virtual void handleException (const exception &e)
virtual void check_for_exception ()
virtual void check_for_validity_messages ()

Static Protected Member Functions

void _callback_validity_error (void *ctx, const char *msg,...)
void _callback_validity_warning (void *ctx, const char *msg,...)

Protected Attributes

_xmlParserCtxt * _context
exception_exception
std::string _validate_error
std::string _validate_warning
bool _validate

Detailed Description

XML parser.


Constructor & Destructor Documentation

xmlpp::Parser::Parser  ) 
 

virtual xmlpp::Parser::~Parser  )  [virtual]
 


Member Function Documentation

void xmlpp::Parser::_callback_validity_error void *  ctx,
const char *  msg,
... 
[static, protected]
 

void xmlpp::Parser::_callback_validity_warning void *  ctx,
const char *  msg,
... 
[static, protected]
 

virtual void xmlpp::Parser::check_for_exception  )  [protected, virtual]
 

virtual void xmlpp::Parser::check_for_validity_messages  )  [protected, virtual]
 

virtual bool xmlpp::Parser::get_validate  )  const [virtual]
 

virtual void xmlpp::Parser::handleException const exception e  )  [protected, virtual]
 

virtual void xmlpp::Parser::initialize_context  )  [protected, virtual]
 

virtual void xmlpp::Parser::on_validity_error const std::string &  message  )  [protected, virtual]
 

virtual void xmlpp::Parser::on_validity_warning const std::string &  message  )  [protected, virtual]
 

virtual void xmlpp::Parser::parse_file const std::string &  filename  )  [pure virtual]
 

Implemented in xmlpp::DomParser, and xmlpp::SaxParser.

virtual void xmlpp::Parser::parse_memory const std::string &  contents  )  [pure virtual]
 

Implemented in xmlpp::DomParser, and xmlpp::SaxParser.

virtual void xmlpp::Parser::parse_stream std::istream &  in  )  [pure virtual]
 

Implemented in xmlpp::DomParser, and xmlpp::SaxParser.

virtual void xmlpp::Parser::release_underlying  )  [protected, virtual]
 

Reimplemented in xmlpp::DomParser, and xmlpp::SaxParser.

virtual void xmlpp::Parser::set_validate bool  val = true  )  [virtual]
 


Member Data Documentation

_xmlParserCtxt* xmlpp::Parser::_context [protected]
 

exception* xmlpp::Parser::_exception [protected]
 

bool xmlpp::Parser::_validate [protected]
 

std::string xmlpp::Parser::_validate_error [protected]
 

std::string xmlpp::Parser::_validate_warning [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 12 18:25:47 2003 for libxml++ by doxygen 1.3.4