23 #ifndef DATATOOLS_URN_TO_PATH_RESOLVER_SERVICE_H 24 #define DATATOOLS_URN_TO_PATH_RESOLVER_SERVICE_H 107 void add_map(
const std::string &);
120 virtual void tree_dump(std::ostream& out = std::clog,
121 const std::string & title =
"",
122 const std::string & indent =
"",
123 bool inherit =
false)
const;
126 void load_map(
const std::string & map_filename_);
132 std::string
resolve(
const std::string & urn_)
const;
136 const std::string & category_,
141 const std::string & category_,
142 const std::string & path_,
143 const std::string & mime_ =
"");
146 void remove(
const std::string & urn_);
149 std::size_t
size()
const;
155 const std::string &
get_category(
const std::string & urn_)
const;
158 const std::string &
get_path(
const std::string & urn_)
const;
161 const std::string &
get_mime(
const std::string & urn_)
const;
187 bool _initialized_ =
false;
190 bool _allow_overloading_ =
false;
191 std::vector<std::string> _map_filenames_;
192 std::set<std::string> _known_categories_;
203 #endif // DATATOOLS_URN_TO_PATH_RESOLVER_SERVICE_H
#define DATATOOLS_SERVICE_REGISTRATION_INTERFACE(SERVICE_CLASS_NAME)
Definition: base_service.h:152