summaryrefslogtreecommitdiff
path: root/src/value.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-22 13:39:21 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-22 13:39:21 -0700
commitf96fc6c53bc8bd8888aeb291441f61a65b439413 (patch)
tree030815351f20cfa6dfb36c816c5c0d737516e784 /src/value.cpp
parentf16847ab29d474e2b20d7f8c9f3a0f229b54c850 (diff)
Initial setup for dealing with object properties
Diffstat (limited to 'src/value.cpp')
-rw-r--r--src/value.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/value.cpp b/src/value.cpp
index 5e6d9b0..ded6c4a 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -1006,6 +1006,17 @@ HashMember<std::string> Value::operator[](const char *key)
}
/**
+ * Custom output stream operator
+ * @param stream
+ * @param value
+ * @return ostream
+ */
+std::ostream &operator<<(std::ostream &stream, const Value &value)
+{
+ return stream << value.stringValue();
+}
+
+/**
* End of namespace
*/
}