23#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
24#error "This file should not be included directly! Use ElementsKernel/Configuration.h instead"
41 if (result.empty() and raise_exception) {
42 throw Exception() <<
"The configuration path \"" << file_name <<
"\" cannot be found!";
defines the base Elements exception class
provide functions to retrieve resources pointed by environment variables
ELEMENTS_API Item getPathFromLocations(const T &file_name, const std::vector< U > &locations)
retrieve path from a file name and a set of location to look into
ELEMENTS_API Path::Item getPath(const T &file_name, bool raise_exception=true)
alias for the getAuxiliaryPath function
boost::filesystem::path Item
ELEMENTS_API Path::Item getConfigurationPath(const T &file_name, bool raise_exception=true)
ELEMENTS_API std::vector< Path::Item > getConfigurationLocations(bool exist_only=false)