30#include <boost/filesystem/operations.hpp>
31#include <boost/filesystem/path.hpp>
39inline namespace Kernel {
58 return (not boost::filesystem::exists(p));
60 location_list.erase(new_end, location_list.end());
66namespace Configuration {
68string getVariableName() {
provide functions to retrieve configuration 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 getConfigurationVariableName()
retrieve the variable name used for the configuration 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< 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 Path::Item getConfigurationPath(const T &file_name, bool raise_exception=true)
ELEMENTS_API std::vector< Path::Item > getConfigurationLocations(bool exist_only=false)
const std::string DEFAULT_INSTALL_PREFIX
constant for the canonical installation prefix (on Linux and MacOSX at least)