summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-08-25 17:35:44 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-08-25 17:35:44 +0000
commit529ba0581833b05921d8dc3336b02a3c6abd511a (patch)
tree0fe12ba22ffef75d2e0ab5729fa86dd48bbbf20b /src/configuration.h
parent9c5199501633ba0e032035a20ef7b9b8e09585cd (diff)
downloadmana-client-529ba0581833b05921d8dc3336b02a3c6abd511a.tar.gz
mana-client-529ba0581833b05921d8dc3336b02a3c6abd511a.tar.bz2
mana-client-529ba0581833b05921d8dc3336b02a3c6abd511a.tar.xz
mana-client-529ba0581833b05921d8dc3336b02a3c6abd511a.zip
Fixed line length in ChangeLog and some other small changes.
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/configuration.h b/src/configuration.h
index f1e47aae..d2f44dca 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -31,7 +31,7 @@
class ConfigListener;
/**
- * INI configuration handler for reading (and writing).
+ * Configuration handler for reading (and writing).
*
* \ingroup CORE
*/
@@ -39,40 +39,44 @@ class Configuration
{
public:
/**
- * \brief Reads INI file and parse all options into memory.
- * \param filename Full path to INI file (~/.manaworld/tmw.ini)
+ * Reads config file and parse all options into memory.
+ *
+ * \param filename path to config file
*/
void init(const std::string &filename);
/**
- * \brief Writes the current settings back to an ini-file.
- * \param filename Full path to INI file (~/.manaworld/tmw.ini)
+ * Writes the current settings back to the config file.
*/
void write();
/**
- * \brief Sets an option using a string value.
+ * Sets an option using a string value.
+ *
* \param key Option identifier.
* \param value Value.
*/
void setValue(const std::string &key, std::string value);
/**
- * \brief Sets an option using a numeric value.
+ * Sets an option using a numeric value.
+ *
* \param key Option identifier.
* \param value Value.
*/
void setValue(const std::string &key, float value);
/**
- * \brief Gets a value as string.
+ * Gets a value as string.
+ *
* \param key Option identifier.
* \param deflt Default option if not there or error.
*/
std::string getValue(const std::string &key, std::string deflt);
/**
- * \brief Gets a value as numeric (float).
+ * Gets a value as numeric (float).
+ *
* \param key Option identifier.
* \param deflt Default option if not there or error.
*/
@@ -93,7 +97,7 @@ class Configuration
std::map<std::string, std::string> options;
std::map<std::string, std::list<ConfigListener*> > listeners;
- std::string configPath; /**< Location of config file */
+ std::string mConfigPath; /**< Location of config file */
};
extern Configuration config;