// todo_mikal: someone shouldn't have imported this comment // Use this docbook comment at the start of a class in the header file to have // a man page generated automatically for the class... /****************************************************************************** DOCBOOK START FUNCTION cepConfiguration PURPOSE store user definable configuration information SYNOPSIS START cepConfiguration::cepConfiguration(string& persistFile); SYNOPSIS END DESCRIPTION START This class stores user definable configuration information such as the size of the main window on startup. It is implemented using trivsql, a trivial SQL implementation from Michael Still (mikal@stillhq.com). cepConfiguration (const string& filename); Constructor, filename defines the location of the configuration database. One will be created if there is no database at this location already. cepError getValue(const string& valkey, const string& defval, string& outval); Get a string value from the configuration database. valkey defines the unique keyname for this value, and defval defines the default value to be used if a value isn't found in the database. If the database lacks a value for this key, then the default value is also written into the database for next time. cepError getValue(const string& valkey, const bool& defval, bool& outval); The same as the string version of getValue, but with a bool value. cepError getValue(const string& valkey, const int& defval, int& outval); The same as the string version of getValue, but with an int value. cepError setValue(const string& valkey, const string& value); Set a string value in the configuration database with key valkey to the value value. cepError setValue(const string& valkey, const int& value); The same as the string version of setValue, but for an int. cepError setValue(const string& valkey, const bool& value); The same as the string version of setValue, but for a bool. DESCRIPTION END DOCBOOK END ******************************************************************************/