Elements
5.8
A C++ base framework for the Euclid Software.
|
Go to the documentation of this file.
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());
This file is intended to iron out all the differences between systems (currently Linux and MacOSX)
provide functions to retrieve resources pointed by environment variables
boost::filesystem::path path
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
ELEMENTS_API boost::filesystem::path getConfigurationPath(const T &file_name, bool raise_exception=true)
const ELEMENTS_API std::map< Type, const std::string > VARIABLE
map containing the name of the path variable for each type
ELEMENTS_API std::string getConfigurationVariableName()
ELEMENTS_API std::vector< boost::filesystem::path > getConfigurationLocations(bool exist_only=false)
const std::string DEFAULT_INSTALL_PREFIX
constant for the canonical installation prefix (on Linux and MacOSX at least)
provide functions to retrieve configuration files