summaryrefslogtreecommitdiff
path: root/src/core/common/Argument.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-16 11:57:16 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-16 11:57:16 +0100
commit9556bd8ac1374daf01700e18e4a025c02b5d3857 (patch)
tree06ae86031eb13892e1606d5ffdad4e267abe77bd /src/core/common/Argument.hpp
parent3cca090a650d2e8268977b57aa0dfdb0fb2cae85 (diff)
parent33a70e7dc2624a674094169dbd234959d5433d81 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/common/Argument.hpp')
-rw-r--r--src/core/common/Argument.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/common/Argument.hpp b/src/core/common/Argument.hpp
index 679b4a5..39b3bb6 100644
--- a/src/core/common/Argument.hpp
+++ b/src/core/common/Argument.hpp
@@ -61,13 +61,13 @@ private:
/**
* Type that should be returned by the Variant rttiType function.
*/
- Rtti const* type;
+ Rtti const *type;
/**
* Describes the inner type of the variant -- e.g. the type of the elements
* inside an array. Normally set to RttiTypes::None.
*/
- Rtti const* innerType;
+ Rtti const *innerType;
/**
* Default value. Note that a value of nullptr does not indicate that no
@@ -421,7 +421,7 @@ public:
* @return the default value that was given in the constructor (may be
* nullptr) and nullptr if no default value was given.
*/
- const Variant& getDefaultValue() const;
+ const Variant &getDefaultValue() const;
/**
* Returns true if a default value was set in the constructor.
@@ -502,10 +502,13 @@ public:
* @param ignoreUnknown if set to true, unknown map entries are ignored
* (a note is issued). This behaviour can be usefull if forward
* compatibility must be achieved (such as for XML based formats).
+ * @param allowNumericIndices if set to true, allows numeric indices in the
+ * input map (such as "#1").
* @return true if the operation was successful, false if an error occured.
*/
bool validateMap(Variant::mapType &map, Logger &logger,
- bool ignoreUnknown = false) const;
+ bool ignoreUnknown = false,
+ bool allowNumericIndices = false) const;
};
}