31 #include <boost/filesystem/operations.hpp>
32 #include <boost/filesystem/path.hpp>
62 return boost::filesystem::exists(p);
64 location_list.erase(new_end, location_list.end());
ELEMENTS_API std::string getConfigurationVariableName()
ELEMENTS_API std::vector< boost::filesystem::path > getConfigurationLocations(bool exist_only=false)
ELEMENTS_API std::vector< boost::filesystem::path > getLocationsFromEnv(const std::string &path_variable, bool exist_only=false)
function to get the locations from an environment variable
boost::filesystem::path getConfigurationPath(const T &file_name, bool raise_exception)
This file is intended to iron out all the differences between systems (currently Linux and MacOSX) ...
boost::filesystem::path path
ELEMENTS_API const std::map< Type, const std::string > VARIABLE
map containing the name of the path variable for each type
provide functions to retrieve resources pointed by environment variables
const std::string DEFAULT_INSTALL_PREFIX
constant for the canonical installation prefix (on Linux and MacOSX at least)
provide functions to retrieve configuration files