desaxe::Action Class Reference
#include <actions.h>
Inheritance diagram for desaxe::Action:

Collaboration diagram for desaxe::Action:

Public Member Functions | |
| Digester * | digester () |
| void | setDigester (Digester *dig) |
| void | begin (const Xml_string &tag, Xml_attr attr) |
| void | end (const Xml_string &tag) |
| void | chars (const Xml_string &data) |
| Action (const Action &other) | |
| virtual | ~Action () |
| Action & | operator= (const Action &other) |
Protected Member Functions | |
| Action (Action_body *body_) | |
Private Member Functions | |
| Action () | |
Private Attributes | |
| Action_body * | body |
Detailed Description
Actions do all the real work when digesting XML files: creating new objects, setting attributes, calling methods. Each Action gets control two or more times for each time the corresponding rule triggers: 1 x begin(), 0- x chars(), 1 x end(). They come in two basic flavors: Generators create a new object in their begin() method and put it on the object stack. Other Actions use objects on the stack, XML attributes or XML text to store this data in other objects. This is usually done in the end() method. Warning: end() methods are called in reverse order. This is to ensure that they see exactly the same stack content as their corresponging begin() method. This is the handle class which delegates to the bodyDefinition at line 58 of file actions.h.
Constructor & Destructor Documentation
| desaxe::Action::Action | ( | const Action & | other | ) | [inline] |
| virtual desaxe::Action::~Action | ( | ) | [inline, virtual] |
| desaxe::Action::Action | ( | Action_body * | body_ | ) | [inline, protected] |
| desaxe::Action::Action | ( | ) | [private] |
Member Function Documentation
| Digester* desaxe::Action::digester | ( | ) | [inline] |
| void desaxe::Action::setDigester | ( | Digester * | dig | ) | [inline] |
Definition at line 62 of file actions.h.
References body, and desaxe::Action_body::dig.
Referenced by desaxe::Digester::addRule().
| void desaxe::Action::begin | ( | const Xml_string & | tag, | |
| Xml_attr | attr | |||
| ) | [inline] |
| void desaxe::Action::end | ( | const Xml_string & | tag | ) | [inline] |
| void desaxe::Action::chars | ( | const Xml_string & | data | ) | [inline] |
Member Data Documentation
Action_body* desaxe::Action::body [private] |
Definition at line 101 of file actions.h.
Referenced by Action(), begin(), chars(), digester(), end(), desaxe::Generator< Obj_Type >::eval(), operator=(), setDigester(), and ~Action().
The documentation for this class was generated from the following file:
