21 #ifndef ELEMENTSKERNEL_ELEMENTSKERNEL__IMPL_CONFIGURATION_ICPP_
22 #define ELEMENTSKERNEL_ELEMENTSKERNEL__IMPL_CONFIGURATION_ICPP_
24 #include <boost/filesystem.hpp>
38 if (result.empty() and raise_exception) {
39 throw Exception() <<
"The configuration path \"" << file_name <<
"\" cannot be found!";
47 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL__IMPL_CONFIGURATION_ICPP_
ELEMENTS_API std::vector< boost::filesystem::path > getConfigurationLocations(bool exist_only=false)
boost::filesystem::path getConfigurationPath(const T &file_name, bool raise_exception)
boost::filesystem::path path
boost::filesystem::path getPathFromLocations(const T &file_name, const std::vector< U > &locations)
retrieve path from a file name and a set of location to look into
provide functions to retrieve resources pointed by environment variables
defines the base Elements exception class