#include <rax_parser.h>
Inheritance diagram for RAX_Parser:
Public Member Functions | |
RAX_Parser () | |
virtual void | start_element (const std::string &name, AttributeList &attributes) |
virtual void | end_element (const std::string &name) |
virtual void | text (const std::string &name, const std::string &t) |
bool | parse (const std::string &filename) |
void | push_handlers () |
void | pop_handlers () |
void | set_handler (const std::string &element_name, Pointer< RAX_Handler > handler) |
virtual | ~RAX_Parser () |
Static Public Member Functions | |
const std::string | xmlch_to_string (const XMLCh *const name) |
|
Constructs a RAX Parser. |
|
Virtual destructor. |
|
Called whenever an end-tag is encountered. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file). name The name of the end-tag. Reimplemented in RAX_Parser_SPH. |
|
Parses XML-File filename. Returns true if successful. Reimplemented in RAX_Parser_SPH. |
|
Pops the last pushed handles from the stack. |
|
Pushes the current handlers on the stack. |
|
Sets *handler as a handler for element with name element_name. |
|
Called whenever a start-tag is encountered. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file). name The name of the end-tag. attributes The specified or defaulted attributes. Reimplemented in RAX_Parser_SPH. |
|
Called whenever a start- or an end-tag is encountered. By default, do nothing. Application writers may override this method in a subclass to take specific actions for each chunk of character data. name The name of the XML-tag in which context the character data was collected. t The character data. Reimplemented in RAX_Parser_SPH. |
|
Converts a XMLCh* to a std::string. |