From 2eec59a47ec36e5e4f921ca91284942b4d7d521b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 18 Jan 2015 21:42:49 +0100 Subject: Fixed bugs in definition of Project, added reference to Project to ParserContext --- src/core/parser/Parser.hpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/core/parser/Parser.hpp') diff --git a/src/core/parser/Parser.hpp b/src/core/parser/Parser.hpp index 63c57c3..049ee4e 100644 --- a/src/core/parser/Parser.hpp +++ b/src/core/parser/Parser.hpp @@ -37,6 +37,7 @@ #include #include #include +#include #include "Scope.hpp" @@ -69,6 +70,11 @@ struct ParserContext { */ Manager &manager; + /** + * Project instance into which the new content should be parsed. + */ + Rooted project; + /** * Constructor of the ParserContext class. * @@ -80,11 +86,16 @@ struct ParserContext { * @param logger is a reference to the Logger instance that should be used * to log error messages and warnings that occur while parsing the document. * @param manager is a Reference to the Manager the parser should append - *nodes to. + * nodes to. + * @param project is the project into which the content should be parsed. */ ParserContext(Scope &scope, Registry ®istry, Logger &logger, - Manager &manager) - : scope(scope), registry(registry), logger(logger), manager(manager){}; + Manager &manager, Handle project) + : scope(scope), + registry(registry), + logger(logger), + manager(manager), + project(project){}; }; /** -- cgit v1.2.3