diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-12-10 16:06:08 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-12-10 16:06:08 +0100 |
commit | f053b48f925cf65aaf6ca937f89dacf59196c719 (patch) | |
tree | d2c9e26bd7dc50bedf253ae0ec1a933522d5976b /src/core/ResourceLocator.hpp | |
parent | 3664b38b1e78063e2bdf994b613f430916544b9c (diff) |
started implementing FileLocator (boost).
Diffstat (limited to 'src/core/ResourceLocator.hpp')
-rw-r--r-- | src/core/ResourceLocator.hpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/core/ResourceLocator.hpp b/src/core/ResourceLocator.hpp index aaea8a5..36930e9 100644 --- a/src/core/ResourceLocator.hpp +++ b/src/core/ResourceLocator.hpp @@ -59,10 +59,15 @@ public: const bool found; const ResourceLocator &locator; const Type type; + /** + * This is a fully qualified/canonical path to the resource found or + * in an undefined state (possibly empty) if the 'found' flag is set + * to 'false'. + */ const std::string location; Location(const bool found, const ResourceLocator &locator, - const Type type, const std::string location) + const Type type, const std::string location) : found(found), locator(locator), type(type), location(location) { } @@ -89,7 +94,9 @@ public: * 'found' flag set accordingly. * * @param path is the resource name. - * @param relativeTo TODO: What is the meaning of this parameter? + * @param relativeTo is an already resolved fully qualified name/canonical + * path that is to be used as base directory for this + * search. * @param type is the type of this resource. * * @return A Location containing either the found location of the @@ -97,8 +104,8 @@ public: * and the found flag set to 'false'. */ virtual Location locate(const std::string &path, - const std::string &relativeTo, - const Type type) const = 0; + const std::string &relativeTo, + const Type type) const = 0; /** * This method returns a strem containing the data of the resource at the |