From f226554fa5b64c2a152f39e52fd4a56acc06f527 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 4 Sep 2011 22:40:42 -0700 Subject: Fleshed out C++ def wrappers some. --- bindings/cpp/upb/upb.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bindings/cpp/upb/upb.hpp') 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; -- cgit v1.2.3