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