summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-11 13:05:52 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-11 13:05:52 +0100
commit3d6d42333a49e0a33a8cc4e1b8f890905a435a83 (patch)
treea5a31ae9ed6a0b674d909d80ac52806635bfd022 /src
parentfcd8e06ade6116730630d9800523637b96aedf32 (diff)
Added Rtti descriptors for primitive type for use in the Variant class
Diffstat (limited to 'src')
-rw-r--r--src/core/common/Rtti.hpp31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/core/common/Rtti.hpp b/src/core/common/Rtti.hpp
index 9d0cdab..f2d4c27 100644
--- a/src/core/common/Rtti.hpp
+++ b/src/core/common/Rtti.hpp
@@ -425,11 +425,40 @@ inline const RttiBase &typeOf(const T &obj)
}
namespace RttiTypes {
-
/**
* Type of no particular type.
*/
extern const RttiBase None;
+
+/**
+ * Bool type for use by the Variant::rttiType method.
+ */
+extern const RttiBase Bool;
+
+/**
+ * Integer type for use by the Variant::rttiType method.
+ */
+extern const RttiBase Int;
+
+/**
+ * Double type for use by the Variant::rttiType method.
+ */
+extern const RttiBase Double;
+
+/**
+ * String type for use by the Variant::rttiType method.
+ */
+extern const RttiBase String;
+
+/**
+ * Array type for use by the Variant::rttiType method.
+ */
+extern const RttiBase Array;
+
+/**
+ * Function type for use by the Variant::rttiType method.
+ */
+extern const RttiBase Function;
}
}