summaryrefslogtreecommitdiff
path: root/src/template.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-24 15:02:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-24 15:03:09 +0300
commit19b130c8dd9119bf9eafb7756bcde828e4fc9b48 (patch)
tree72c826ca28a7fc1ba9c6445e33f2e8f9261a37d4 /src/template.hpp
parentf7190f06bdfc24415ace9dad391aed71aca8f914 (diff)
downloadmplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.tar.gz
mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.tar.bz2
mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.tar.xz
mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.zip
Add function called after file was processed.
Diffstat (limited to 'src/template.hpp')
-rw-r--r--src/template.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/template.hpp b/src/template.hpp
index 2bd9811..7345fff 100644
--- a/src/template.hpp
+++ b/src/template.hpp
@@ -28,7 +28,9 @@ class name : public RuleBase \
public: \
name(); \
\
- void init(); \
+ void start(); \
+\
+ void end(); \
\
void parseLine(const std::string &data); \
}; \
@@ -48,7 +50,9 @@ class name : public RuleBase \
addMask(ext); \
} \
\
- void init(); \
+ void start(); \
+\
+ void end(); \
\
void parseLine(const std::string &data); \
}; \
@@ -60,5 +64,6 @@ namespace \
#define constructRule(name) name::name()
-#define initRule(name) void name::init()
+#define startRule(name) void name::start()
+#define endRule(name) void name::end()
#define parseLineRule(name) void name::parseLine(const std::string &data)