diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-06 16:52:51 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-06 16:52:51 +0100 |
commit | 7fb170a87a4551a048487361b7aaf29963dc7b99 (patch) | |
tree | b2f532ec8e6aa54f475c0e48b3ef5d39b6ee3b6c /src/core/parser/ParserState.hpp | |
parent | 3ceb415e4f81b50b8e46351e9e586794ebf08644 (diff) | |
parent | b211c02c53f3ed38c7d124d6a74f22ee17df7063 (diff) |
Merge branch 'master' of somweyr.de:ousia
Conflicts:
application/src/plugins/xml/XmlParser.cpp
Diffstat (limited to 'src/core/parser/ParserState.hpp')
-rw-r--r-- | src/core/parser/ParserState.hpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/core/parser/ParserState.hpp b/src/core/parser/ParserState.hpp index 43b8035..6487fdd 100644 --- a/src/core/parser/ParserState.hpp +++ b/src/core/parser/ParserState.hpp @@ -79,13 +79,6 @@ struct ParserState { HandlerConstructor elementHandler; /** - * Pointer at a function which creates a new concrete Handler instance for - * all child elements for which no matching state is defined. May be nullptr - * in which case no such elements are allowed. - */ - HandlerConstructor childHandler; - - /** * Default constructor, initializes the handlers with nullptr. */ ParserState(); @@ -104,15 +97,10 @@ struct ParserState { * @param elementHandler is a pointer at a function which creates a new * concrete Handler instance for the elements described by this state. May * be nullptr in which case no handler instance is created. - * @param childHandler is a pointer at a function which creates a new - * concrete Handler instance for all child elements for which no matching - * state is defined. May be nullptr in which case no such elements are - * allowed. */ ParserState(ParserStateSet parents, Arguments arguments = Arguments{}, RttiSet createdNodeTypes = RttiSet{}, - HandlerConstructor elementHandler = nullptr, - HandlerConstructor childHandler = nullptr); + HandlerConstructor elementHandler = nullptr); /** * Creates this ParserState from the given ParserStateBuilder instance. @@ -209,19 +197,6 @@ public: ParserStateBuilder &elementHandler(HandlerConstructor elementHandler); /** - * Sets the constructor for the child handler. The constructor creates a new - * concrete Handler instance for all child elements for which no matching - * state is defined. May be nullptr in which case no such elements are - * allowed. - * - * @param childHandler is the HandlerConstructor that should point at the - * constructor of the Handler instance for child elements. - * @return a reference at this ParserStateBuilder instance for method - * chaining. - */ - ParserStateBuilder &childHandler(HandlerConstructor childHandler); - - /** * Returns a reference at the internal ParserState instance that was built * using the ParserStateBuilder. * |