15 #error "You need to #include "sys.h" at the top of every source file (which in turn should #include "sys.h")."
18 #ifndef LIBCWD_CLASS_RCFILE_H
19 #define LIBCWD_CLASS_RCFILE_H
50 std::string M_konsole_command;
51 std::string M_gdb_bin;
66 rcfile_ct() : M_env_set(false), M_read_called(false) { }
70 void M_print_delayed_msg()
const;
72 static bool S_exists(
char const* name);
73 std::string M_determine_rcfile_name();
75 enum action_nt { toggle, on, off };
76 void M_process_channel(channel_ct& debugChannel, std::string
const& mask, action_nt
const action);
77 void M_process_channels(std::string list, action_nt
const action);
91 std::string
const&
gdb_bin()
const {
return M_gdb_bin; }
This object represents a runtime configuration file.
Definition: class_rcfile.h:48
rcfile_ct()
Construct a rcfile object.
Definition: class_rcfile.h:66
std::string const & gdb_bin() const
Returns the command line string as set with the 'gdb_bin' keyword.
Definition: class_rcfile.h:91
std::string const & konsole_command() const
Returns the command line string as set with the 'xterm' keyword.
Definition: class_rcfile.h:87
void read()
Initialize this object by reading the rcfile.
bool read_called() const
Returns true when this object is initialized.
Definition: class_rcfile.h:95
virtual bool unknown_keyword(std::string const &keyword, std::string const &value)
Virtual function called for unknown keywords.
namespace for libcwd.
Definition: debug.cc:87
void read_rcfile()
Calls libcwd::rcfile.read().
Definition: class_rcfile.h:117