21 #ifdef ELEMENTSKERNEL_ELEMENTSKERNEL_AUXILIARY_IMPL_
36 if (result.empty() and raise_exception) {
37 throw Exception() <<
"The auxiliary path \"" << file_name <<
"\" cannot be found!";
45 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_AUXILIARY_IMPL_
ELEMENTS_API Path::Item getAuxiliaryPath(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
This file is intended to iron out all the differences between systems (currently Linux and MacOSX) ...
ELEMENTS_API std::vector< Path::Item > getAuxiliaryLocations(bool exist_only=false)
boost::filesystem::path Item
provide functions to retrieve resources pointed by environment variables
defines the base Elements exception class