summaryrefslogtreecommitdiff
path: root/src/core/common/Argument.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-13 02:01:20 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-13 02:01:20 +0100
commit742b76b006daf27ea19b2834e56696cb3c5a0e18 (patch)
tree58a08b0c8095561e6173a134e10e9894d4f0913f /src/core/common/Argument.hpp
parent35c176d435a7154a7bc3c646be9798e5a1ed3c28 (diff)
auto format + made some functions const
Diffstat (limited to 'src/core/common/Argument.hpp')
-rw-r--r--src/core/common/Argument.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/common/Argument.hpp b/src/core/common/Argument.hpp
index 7227ddb..23078b2 100644
--- a/src/core/common/Argument.hpp
+++ b/src/core/common/Argument.hpp
@@ -380,7 +380,7 @@ public:
* @param logger is the logger instance to which errors should be written.
* @return true if the given variant was valid, false otherwise.
*/
- bool validate(Variant &var, Logger &logger);
+ bool validate(Variant &var, Logger &logger) const;
};
/**
@@ -401,6 +401,12 @@ private:
std::unordered_map<std::string, size_t> names;
public:
+
+ /**
+ * Default constructor. Provides no arguments.
+ */
+ Arguments() {};
+
/**
* Constructor of the Arguments class from a list of Argument instances.
*
@@ -422,7 +428,7 @@ public:
* will be written.
* @return true if the operation was successful, false if an error occured.
*/
- bool validateArray(Variant::arrayType &arr, Logger &logger);
+ bool validateArray(Variant::arrayType &arr, Logger &logger) const;
/**
* Checks whether the content of the given variant map matches the
@@ -441,7 +447,7 @@ public:
* @return true if the operation was successful, false if an error occured.
*/
bool validateMap(Variant::mapType &map, Logger &logger,
- bool ignoreUnknown = false);
+ bool ignoreUnknown = false) const;
};
}