summaryrefslogtreecommitdiff
path: root/src/rulebase.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rulebase.h')
-rw-r--r--src/rulebase.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rulebase.h b/src/rulebase.h
index d205b7d..1d237ee 100644
--- a/src/rulebase.h
+++ b/src/rulebase.h
@@ -34,6 +34,8 @@ class RuleBase
virtual ~RuleBase()
{ }
+ void init();
+
virtual void start()
{ }
@@ -61,6 +63,11 @@ class RuleBase
std::string getName() const A_WARN_UNUSED
{ return ruleName; }
+ bool getFlag() const A_WARN_UNUSED
+ { return flag; }
+
+ void terminateRule();
+
protected:
void print(const std::string &text) const;
@@ -75,6 +82,7 @@ class RuleBase
std::string file;
std::string ruleName;
int line;
+ bool flag;
};
#endif // RULEBASE_H