diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-02 15:58:55 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-02 15:58:55 +0100 |
commit | 24c7a8d1e62dc52298ea1abdc8b44d70fff94b54 (patch) | |
tree | c82a161ce02e177b6be5e63a65c5a2f42eecf2e6 /src/core/parser/stack/Callbacks.hpp | |
parent | 4b5f37d07e4e691848b243ae795bb59893a6379c (diff) | |
parent | 5b81f755a5303c3eab05c605711ecca32c071b6d (diff) |
Merge branch 'astoecke_tokens' of somweyr.de:ousia into astoecke_tokens
Conflicts:
application/src/core/parser/stack/Callbacks.hpp
application/src/core/parser/stack/Handler.hpp
Diffstat (limited to 'src/core/parser/stack/Callbacks.hpp')
-rw-r--r-- | src/core/parser/stack/Callbacks.hpp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/core/parser/stack/Callbacks.hpp b/src/core/parser/stack/Callbacks.hpp index e471881..092664a 100644 --- a/src/core/parser/stack/Callbacks.hpp +++ b/src/core/parser/stack/Callbacks.hpp @@ -77,19 +77,9 @@ public: * Interface defining a set of callback functions that act as a basis for the * StateStackCallbacks and the ParserCallbacks. */ -class HandlerCallbacks: public ParserCallbacks { +class HandlerCallbacks : public ParserCallbacks { public: /** - * Reads a string variant form the current input stream. This function must - * be called from the data() method. - * - * @return a string variant containing the current text data. The return - * value depends on the currently set whitespace mode and the tokens that - * were enabled using the enableTokens callback method. - */ - Variant readData(); - - /** * Pushes a list of TokenSyntaxDescriptor instances onto the internal stack. * The tokens described in the token list are the tokens that are currently * enabled. @@ -98,13 +88,21 @@ public: * stored on the stack. */ void pushTokens(const std::vector<SyntaxDescriptor> &tokens); - /** * Removes the previously pushed list of tokens from the stack. */ - void popTokens(); -}; + virtual void popTokens() = 0; + /** + * Reads a string variant form the current input stream. This function must + * be called from the data() method. + * + * @return a string variant containing the current text data. The return + * value depends on the currently set whitespace mode and the tokens that + * were enabled using the enableTokens callback method. + */ + virtual Variant readData() = 0; +}; } } |