summaryrefslogtreecommitdiff
path: root/src/core/common/Argument.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 20:47:07 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 20:47:07 +0100
commit4a4e2245730ead7fce354469fe626398520f12b2 (patch)
treeaf42dbf2fd9ea87884cd500367c4017293609863 /src/core/common/Argument.hpp
parent6de2c8ad9450a8b349161d37ad7cab538324034d (diff)
parent75eea3bdd846a34c69be3d09f41ff4fae706628e (diff)
using remote version of simple_book.osml
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;
};
}