summaryrefslogtreecommitdiff
path: root/src/core/parser/stack/Callbacks.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-03-02 15:58:55 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-03-02 15:58:55 +0100
commit24c7a8d1e62dc52298ea1abdc8b44d70fff94b54 (patch)
treec82a161ce02e177b6be5e63a65c5a2f42eecf2e6 /src/core/parser/stack/Callbacks.hpp
parent4b5f37d07e4e691848b243ae795bb59893a6379c (diff)
parent5b81f755a5303c3eab05c605711ecca32c071b6d (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.hpp26
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;
+};
}
}