21 #ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
22 #error "This file should not be included directly! Use ElementsKernel/Configuration.h instead"
30 inline namespace Kernel {
39 if (result.empty() and raise_exception) {
40 throw Exception() <<
"The configuration path \"" << file_name <<
"\" cannot be found!";
46 namespace Configuration {
58 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
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
boost::filesystem::path Item
ELEMENTS_API Path::Item getConfigurationPath(const T &file_name, bool raise_exception=true)
ELEMENTS_API Path::Item getPath(const T &file_name, bool raise_exception=true)
alias for the getAuxiliaryPath function
provide functions to retrieve resources pointed by environment variables
defines the base Elements exception class
ELEMENTS_API std::vector< Path::Item > getConfigurationLocations(bool exist_only=false)