21 #ifndef ELEMENTSKERNEL_ELEMENTSKERNEL__IMPL_AUXILIARY_ICPP_
22 #define ELEMENTSKERNEL_ELEMENTSKERNEL__IMPL_AUXILIARY_ICPP_
24 #include <boost/filesystem.hpp>
39 if (result.empty() and raise_exception) {
40 throw Exception() <<
"The auxiliary path \"" << file_name <<
"\" cannot be found!";
48 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL__IMPL_AUXILIARY_ICPP_
ELEMENTS_API std::vector< boost::filesystem::path > getAuxiliaryLocations(bool exist_only=false)
This file is intended to iron out all the differences between systems (currently Linux and MacOSX) ...
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
boost::filesystem::path getAuxiliaryPath(const T &file_name, bool raise_exception)
defines the base Elements exception class