summaryrefslogtreecommitdiff
path: root/bindings/cpp/upb/upb.hpp
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-09-04 22:40:42 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-09-04 22:40:42 -0700
commitf226554fa5b64c2a152f39e52fd4a56acc06f527 (patch)
treecb4b42c6797233c5b3590915f6fe43ab346cbcb7 /bindings/cpp/upb/upb.hpp
parent621c0cdcb5efc4f7c2382031becded018ef0b62b (diff)
Fleshed out C++ def wrappers some.
Diffstat (limited to 'bindings/cpp/upb/upb.hpp')
-rw-r--r--bindings/cpp/upb/upb.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bindings/cpp/upb/upb.hpp b/bindings/cpp/upb/upb.hpp
index 460fb43..4fb337d 100644
--- a/bindings/cpp/upb/upb.hpp
+++ b/bindings/cpp/upb/upb.hpp
@@ -20,6 +20,12 @@ class Status : public upb_status {
const char *GetString() const { return upb_status_getstr(this); }
};
+class Value : public upb_value {
+ public:
+ Value(const upb_value& val) { *this = val; }
+ Value() {}
+};
+
INLINE std::ostream& operator<<(std::ostream& out, const Status& status) {
out << status.GetString();
return out;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback