Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

Public Member Functions | Protected Member Functions | List of all members
libcwd::rcfile_ct Class Reference

This object represents a runtime configuration file. More...

#include <libcwd/debug.h>

Public Member Functions

 rcfile_ct ()
 Construct a rcfile object.
 
void read (void)
 Initialize this object by reading the rcfile.
 
std::string const & konsole_command (void) const
 Returns the command line string as set with the 'xterm' keyword.
 
std::string const & gdb_bin (void) const
 Returns the command line string as set with the 'gdb_bin' keyword.
 
bool read_called (void) const
 Returns true when this object is initialized.
 

Protected Member Functions

virtual bool unknown_keyword (std::string const &keyword, std::string const &value)
 Virtual function called for unknown keywords. More...
 

Detailed Description

This object represents a runtime configuration file.

Libcwd contains one object of this type, libcwd::rcfile. This is the object that is used by read_rcfile() .

Member Function Documentation

virtual bool libcwd::rcfile_ct::unknown_keyword ( std::string const &  keyword,
std::string const &  value 
)
protectedvirtual

Virtual function called for unknown keywords.

By using this class as a base and overriding this function it is possible to extend the keywords that are recognized.

This function should return true when the keyword is not handled. The default behaviour is to always return true.

Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.