Scribus
Open source desktop publishing at your fingertips
desaxe::RuleState Class Reference

Public Member Functions

 RuleState (const RuleState &other)
 
void addRule (const Xml_string &pattern, Action action)
 adds a rule to the list
 
void reset ()
 sets the pattern recognizing automaton to its start state
 
const std::vector< rule_t > & rulesForCurrentState ()
 returns the rules which apply for the currently recognized pattern
 
void open (const Xml_string &tag)
 enters a new state when tag is read
 
void close ()
 returns to the old state when the close tag is read
 
void dump ()
 diagnostics
 

Detailed Description

private implementation for Digester. uses a DFA to keep track of the currently recognized pattern(s). if you have no idea what a (non)deterministic finite automaton is you probably don't want to read the rest of this code.


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