From 5b68f46580824d47ce948ac349d43f8aa8647ec9 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 15 Jan 2015 00:21:03 +0100 Subject: Added possibility to construct Arguments in a mode in which no validation is performed. --- src/core/common/Argument.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/core/common/Argument.hpp') diff --git a/src/core/common/Argument.hpp b/src/core/common/Argument.hpp index 78f7ec1..dd652de 100644 --- a/src/core/common/Argument.hpp +++ b/src/core/common/Argument.hpp @@ -402,12 +402,23 @@ private: */ std::unordered_map names; + /** + * Set to true if arguments were explicitly given in the constructor, + * false otherwise. + */ + bool valid; + public: + /** + * Static Arguments instance with no explicit arguments set. + */ + static const Arguments None; + /** * Default constructor. Provides no arguments. */ - Arguments() {}; + Arguments() : valid(false) {}; /** * Constructor of the Arguments class from a list of Argument instances. -- cgit v1.2.3