21 #ifdef ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
36 if (result.empty() and raise_exception) {
37 throw Exception() <<
"The configuration path \"" << file_name <<
"\" cannot be found!";
45 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
ELEMENTS_API Path::Item getConfigurationPath(const T &file_name, bool raise_exception=true)
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
provide functions to retrieve resources pointed by environment variables
ELEMENTS_API std::vector< Path::Item > getConfigurationLocations(bool exist_only=false)
defines the base Elements exception class