30#include <boost/filesystem/operations.hpp>
31#include <boost/filesystem/path.hpp>
39inline namespace Kernel {
56 location_list.emplace_back(
Path::Item(DEFAULT_INSTALL_PREFIX) /
"share" /
"auxdir");
58 location_list.emplace_back(
Path::Item(DEFAULT_INSTALL_PREFIX) /
"share" /
"aux");
62 return (not boost::filesystem::exists(p));
64 location_list.erase(new_end, location_list.end());
provide functions to retrieve auxiliary files
provide functions to retrieve resources pointed by environment variables
This file is intended to iron out all the differences between systems (currently Linux and MacOSX)
ELEMENTS_API std::string getVariableName()
alias for the getAuxiliaryVariableName function
ELEMENTS_API std::string getAuxiliaryVariableName()
retrieve the variable name used for the auxiliary file lookup
ELEMENTS_API const std::map< Type, const std::string > VARIABLE
map containing the name of the path variable for each type
ELEMENTS_API std::vector< Path::Item > getLocations(bool exist_only=false)
alias for the getAuxiliaryLocations function
ELEMENTS_API std::vector< Item > getLocations(const Type &path_type, bool exist_only=false)
function to get the locations for the specific type
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)
const std::string DEFAULT_INSTALL_PREFIX
constant for the canonical installation prefix (on Linux and MacOSX at least)