From 42c0480b4fbf80afa0c5b13650a0af74311d7202 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 3 Mar 2015 20:20:40 +0100 Subject: Implemented annotation handling --- src/core/parser/stack/Handler.hpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/core/parser/stack/Handler.hpp') diff --git a/src/core/parser/stack/Handler.hpp b/src/core/parser/stack/Handler.hpp index 67fde06..d85848a 100644 --- a/src/core/parser/stack/Handler.hpp +++ b/src/core/parser/stack/Handler.hpp @@ -208,13 +208,6 @@ protected: // void popWhitespaceMode(); public: - /** - * Enum representing the type of the annotation a Handle instance handles. - * It may either handle the start of an annotation or the end of an - * annotation. - */ - enum class AnnotationType { START, END }; - /** * Enum type representing the possible outcomes of the endToken() method. */ @@ -347,11 +340,8 @@ public: * accessed using the name() method. * * @param args is a map from strings to variants (argument name and value). - * @param type specifies whether this handler should handle the start of an - * annotation or the end of an annotation. */ - virtual bool startAnnotation(Variant::mapType &args, - AnnotationType annotationType) = 0; + virtual bool startAnnotation(Variant::mapType &args) = 0; /** * Called whenever the handler should handle the start of a token. This @@ -442,8 +432,7 @@ protected: public: bool startCommand(Variant::mapType &args) override; - bool startAnnotation(Variant::mapType &args, - AnnotationType annotationType) override; + bool startAnnotation(Variant::mapType &args) override; bool startToken(Handle node) override; EndTokenResult endToken(const Token &token, Handle node) override; void end() override; @@ -468,8 +457,7 @@ protected: public: bool startCommand(Variant::mapType &args) override; - bool startAnnotation(Variant::mapType &args, - AnnotationType annotationType) override; + bool startAnnotation(Variant::mapType &args) override; bool startToken(Handle node) override; EndTokenResult endToken(const Token &token, Handle node) override; void end() override; -- cgit v1.2.3