23 #ifndef __PLUGINS_ECLIPSE_CLP_EXTERNALS_ECLIPSE_PATH_H_ 24 #define __PLUGINS_ECLIPSE_CLP_EXTERNALS_ECLIPSE_PATH_H_ 28 #include <boost/filesystem.hpp> 29 #include <boost/regex.hpp> 41 void add_regex(boost::regex re, std::string str);
50 std::map<boost::regex, std::string>
regexes;
53 extern "C" int p_locate_file(...);
void apply_regexes()
Apply the regexes to all paths.
void add_regex(boost::regex re, std::string str)
Add a regex.
static EclipsePath * instance()
Get the EclipsePath instance.
void print_all_paths()
Debug method to print all path to the command line.
Class to determine the location of ECLiPSe-clp programs.
std::map< boost::regex, std::string > regexes
regexes and strings they should be replaced with
std::vector< std::string > paths
all paths known
static void create_initial_object()
Create the initial EclipsePath object.
void add_path_check(std::string path)
Add a new path and apply regexes to all paths.
std::string locate_file(std::string filename)
Locate a file by filename.
void add_path(std::string path)
Add a new path.