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 --- test/core/parser/StandaloneParserContext.hpp | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'test/core/parser/StandaloneParserContext.hpp') diff --git a/test/core/parser/StandaloneParserContext.hpp b/test/core/parser/StandaloneParserContext.hpp index 78d148d..aca056e 100644 --- a/test/core/parser/StandaloneParserContext.hpp +++ b/test/core/parser/StandaloneParserContext.hpp @@ -19,28 +19,35 @@ #ifndef _OUSIA_STANDALONE_PARSER_CONTEXT_ #define _OUSIA_STANDALONE_PARSER_CONTEXT_ +#include + +#include #include namespace ousia { namespace parser { -struct StandaloneParserContext : public ParserContext { -private: +struct StandaloneParserContext { +public: Manager manager; Logger logger; Scope scope; Registry registry; + Rooted project; + ParserContext context; -public: StandaloneParserContext() - : ParserContext(scope, registry, logger, manager), - registry(logger){}; + : registry(logger), + project(new model::Project(manager)), + context(scope, registry, logger, manager, project) + { + } StandaloneParserContext(Logger &externalLogger) - : ParserContext(scope, registry, externalLogger, manager), - registry(externalLogger){}; + : registry(externalLogger), + project(new model::Project(manager)), + context(scope, registry, externalLogger, manager, project){}; }; - } } -- cgit v1.2.3