summaryrefslogtreecommitdiff
path: root/src/core/variant/Variant.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-05 00:58:49 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-05 00:58:49 +0100
commitf122527f6a080a099ecd64ec069e21331491f0dc (patch)
tree5b8fb83f1159dc1bb8baea4453e006d7ab402ba1 /src/core/variant/Variant.hpp
parent06e1de4674425cc5e4a1437b8d73a42d6f36ad24 (diff)
added reader class for microformats
Diffstat (limited to 'src/core/variant/Variant.hpp')
-rw-r--r--src/core/variant/Variant.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/variant/Variant.hpp b/src/core/variant/Variant.hpp
index d65e14a..6476780 100644
--- a/src/core/variant/Variant.hpp
+++ b/src/core/variant/Variant.hpp
@@ -42,6 +42,7 @@
#include <core/Exceptions.hpp>
namespace ousia {
+namespace variant {
/**
* Instances of the Variant class represent any kind of data that is exchanged
@@ -680,13 +681,16 @@ public:
* Prints a key value pair to the output stream.
*/
friend std::ostream &operator<<(std::ostream &os,
- const mapType::value_type &v)
+ const mapType::value_type &v)
{
// TODO: Use proper serialization function
return os << "\"" << v.first << "\": " << v.second.toString(true);
}
};
+}
+// Alias for the (very often used and unambigous) variant class
+using Variant = variant::Variant;
}
#endif /* _OUSIA_VARIANT_HPP_ */