23#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_AUXILIARY_IMPL_
24#error "This file should not be included directly! Use ElementsKernel/Auxiliary.h instead"
40 if (result.empty() and raise_exception) {
41 throw Exception() <<
"The auxiliary path \"" << file_name <<
"\" cannot be found!";
defines the base Elements exception class
provide functions to retrieve resources pointed by environment variables
ELEMENTS_API Path::Item getPath(const T &file_name, bool raise_exception=true)
alias for the getAuxiliaryPath function
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 std::vector< Path::Item > getAuxiliaryLocations(bool exist_only=false)
ELEMENTS_API Path::Item getAuxiliaryPath(const T &file_name, bool raise_exception=true)