summaryrefslogtreecommitdiff
path: root/src/properties.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-20 13:24:20 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-20 13:24:20 +0000
commita84133850af6d348c0c4e252b26618148702153b (patch)
treef4b8d7c9bbdeecd9c1976bdc3d3806909a25cd28 /src/properties.h
parent1afcf2608c0a466d2df21faea1530955cc8061fc (diff)
downloadmana-a84133850af6d348c0c4e252b26618148702153b.tar.gz
mana-a84133850af6d348c0c4e252b26618148702153b.tar.bz2
mana-a84133850af6d348c0c4e252b26618148702153b.tar.xz
mana-a84133850af6d348c0c4e252b26618148702153b.zip
Merged a bunch of small changes from trunk to 0.0 and set svn:eol-style
to native for some files that were still missing this property. This is a feeble attempt to reduce the amount of conflicts for future merges.
Diffstat (limited to 'src/properties.h')
-rw-r--r--src/properties.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/properties.h b/src/properties.h
index 56e90c0e..bcd114c1 100644
--- a/src/properties.h
+++ b/src/properties.h
@@ -34,13 +34,17 @@
class Properties
{
public:
+ /**
+ * Destructor.
+ */
virtual
~Properties() {}
/**
* Get a map property.
*
- * @param def default value, empty string by default
+ * @param name The name of the property.
+ * @param def Default value, empty string by default.
* @return the value of the given property or the given default when it
* doesn't exist.
*/
@@ -54,7 +58,8 @@ class Properties
/**
* Gets a map property as a float.
*
- * @param def default value, 0.0f by default
+ * @param name The name of the property.
+ * @param def Default value, 0.0f by default.
* @return the value of the given property, or 0.0f when it doesn't
* exist.
*/
@@ -74,6 +79,10 @@ class Properties
/**
* Returns whether a certain property is available.
+ *
+ * @param name The name of the property.
+ * @return <code>true</code> when a property is defined,
+ * <code>false</code> otherwise.
*/
bool
hasProperty(const std::string &name)
@@ -83,6 +92,9 @@ class Properties
/**
* Set a map property.
+ *
+ * @param name The name of the property.
+ * @param value The value of the property.
*/
void
setProperty(const std::string &name, const std::string &value)