From e86c292967d85b571344b74fb5eeedf5ebf95aa8 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 25 Jan 2015 23:16:01 +0100 Subject: Added missing const and "getSourceContextCallback" function --- src/core/model/Project.hpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/core/model/Project.hpp') diff --git a/src/core/model/Project.hpp b/src/core/model/Project.hpp index 4743454..1c33dc8 100644 --- a/src/core/model/Project.hpp +++ b/src/core/model/Project.hpp @@ -111,7 +111,7 @@ public: * @return the parsed node or nullptr if something goes wrong. */ Rooted parse(const std::string &path, const std::string mimetype, - const std::string rel, RttiSet &supportedTypes, + const std::string rel, const RttiSet &supportedTypes, Logger &logger); /** @@ -136,7 +136,7 @@ public: */ Rooted link(ParserContext &ctx, const std::string &path, const std::string mimetype, const std::string rel, - RttiSet &supportedTypes); + const RttiSet &supportedTypes); /** * Parses a file with ParserContext and the current ParserScope. In contrast @@ -160,7 +160,16 @@ public: */ Rooted include(ParserContext &ctx, const std::string &path, const std::string mimetype, const std::string rel, - RttiSet &supportedTypes); + const RttiSet &supportedTypes); + + /** + * Returns a SourceContextCallback that can be passed to a logger instance. + * Remeber to reset the SourceContextCallback after the Project instance has + * been freed. + * + * @return a SourceContextCallback that is coupled to this Project instance. + */ + SourceContextCallback getSourceContextCallback(); /** * Returns a reference to the internal system typesystem. -- cgit v1.2.3