diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-25 23:16:01 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-25 23:16:01 +0100 |
commit | e86c292967d85b571344b74fb5eeedf5ebf95aa8 (patch) | |
tree | ee354fc1ef56d0615e96155af7e0b92507d997b1 /src/core/model/Project.hpp | |
parent | 566742c6fa0e1c689cfabd60a7989d7ad48db66c (diff) |
Added missing const and "getSourceContextCallback" function
Diffstat (limited to 'src/core/model/Project.hpp')
-rw-r--r-- | src/core/model/Project.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
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<Node> 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<Node> 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<Node> 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. |