summaryrefslogtreecommitdiff
path: root/src/core/resource/ResourceManager.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-24 14:43:36 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-24 14:43:36 +0100
commitea2ff3388513949ddb5d3e3c2dca89bceb3d52bc (patch)
tree8b7c3d720801b3e3d45666ec21f3e87404e936e4 /src/core/resource/ResourceManager.hpp
parent7a2fffd5827d0b645f9fb1624d50ccc5b1d583c0 (diff)
parent6cb52deaad36f59738b6b4d203457a7f8d2d13e9 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/resource/ResourceManager.hpp')
-rw-r--r--src/core/resource/ResourceManager.hpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/core/resource/ResourceManager.hpp b/src/core/resource/ResourceManager.hpp
index d5381b9..221e2cc 100644
--- a/src/core/resource/ResourceManager.hpp
+++ b/src/core/resource/ResourceManager.hpp
@@ -34,7 +34,6 @@
#include <core/common/Location.hpp>
#include <core/common/Rtti.hpp>
-#include <core/common/SourceContextReader.hpp>
#include <core/managed/Managed.hpp>
#include "Resource.hpp"
@@ -230,9 +229,22 @@ public:
* @return a valid SourceContext if a valid SourceLocation was given or an
* invalid SourceContext if the location is invalid.
*/
- SourceContext readContext(
- const SourceLocation &location,
- size_t maxContextLength = SourceContextReader::MAX_MAX_CONTEXT_LENGTH);
+ SourceContext readContext(const SourceLocation &location,
+ size_t maxContextLength);
+ /**
+ * Creates and returns a SourceContext structure containing information
+ * about the given SourceLocation (such as line and column number). Throws
+ * a LoggableException if an irrecoverable error occurs while looking up the
+ * context (such as a no longer existing resource). Does not limit the
+ * context length.
+ *
+ * @param location is the SourceLocation for which context information
+ * should be retrieved. This method is used by the Logger class to print
+ * pretty messages.
+ * @return a valid SourceContext if a valid SourceLocation was given or an
+ * invalid SourceContext if the location is invalid.
+ */
+ SourceContext readContext(const SourceLocation &location);
};
}