#include <rulesystem.h>
Public Types | |
| typedef map< string, RunRuleList > | NamedRunRuleList |
| A run rule list for every context name. | |
Public Member Functions | |
| RuleSystem (int debug=0) | |
| Constructor. | |
| void | execute (const string &phpFileName, StatementList *phpIn, StatementList *phpOut, StatementList *tplOut) |
| Executes system on a given program. | |
| ~RuleSystem () | |
| Destructor. | |
| RunRuleList & | getRunRuleList (const string &contextName) |
| Return rule list for a given context. | |
| bool | stepTime () |
| Steps to the next run time. | |
| int | getRuleRunTime () const |
| Returns the cournent run time. | |
Private Attributes | |
| NamedRunRuleList | runRules |
| Rules of the system. | |
| NameSpace | mainNameSpace |
| The main name space -- for globals. | |
| set< int > | ruleRunTimes |
| All run times -- used internally. | |
| set< int >::iterator | courrentRunTime |
| Courent run time. | |
Definition at line 12 of file rulesystem.h.
|
|
A run rule list for every context name.
Definition at line 15 of file rulesystem.h. |
|
|
Constructor.
Definition at line 29 of file rulesystem.cpp. References courrentRunTime, MYRULES, NamedRuleList::name, ruleRunTimes, NamedRuleList::rules, runRules, and NamedRuleList::runTime. |
|
|
Destructor.
Definition at line 59 of file rulesystem.cpp. |
|
||||||||||||||||||||
|
Executes system on a given program.
Definition at line 19 of file rulesystem.cpp. References NameSpace::importLocals(), MAINCONTEXTNAME, mainNameSpace, NamedContextRule::runRules(), and runRules. Referenced by PHPFiles::executeRuleSystemAtTime(). |
|
|
Returns the cournent run time.
Definition at line 44 of file rulesystem.h. References courrentRunTime. Referenced by PHPFiles::executeRuleSystemAtTime(). |
|
|
Return rule list for a given context.
Definition at line 39 of file rulesystem.h. References runRules. |
|
|
Steps to the next run time.
Definition at line 50 of file rulesystem.cpp. References courrentRunTime, mainNameSpace, ruleRunTimes, and NameSpace::setRuleRunTime(). Referenced by PHPFiles::executeRuleSystem(). |
|
|
Courent run time.
Definition at line 26 of file rulesystem.h. Referenced by getRuleRunTime(), RuleSystem(), and stepTime(). |
|
|
The main name space -- for globals.
Definition at line 22 of file rulesystem.h. Referenced by execute(), and stepTime(). |
|
|
All run times -- used internally.
Definition at line 24 of file rulesystem.h. Referenced by RuleSystem(), and stepTime(). |
|
|
Rules of the system.
Definition at line 20 of file rulesystem.h. Referenced by execute(), getRunRuleList(), and RuleSystem(). |
1.3.3