summaryrefslogtreecommitdiff
path: root/test/DebugProtoTest.thrift
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2008-02-18 01:49:37 +0000
committerDavid Reiss <dreiss@apache.org>2008-02-18 01:49:37 +0000
commitdb0ea15310339c504f37128e49421bba58051933 (patch)
tree50e25907ca864ba90804ca3754238fdd514dc722 /test/DebugProtoTest.thrift
parentc005b1b65ed24bba18e843c85b9a2a281bfec265 (diff)
downloadthrift-db0ea15310339c504f37128e49421bba58051933.tar.gz
Thrift: Add a full-featured JSON protocol for C++.
Summary: This change adds a new and exciting protocol to Thrift. It uses RFC-compliant JSON as the wire protocol and is fully human readable. (once a little whitespace has been inserted.) Unlike the existing JSON protocol for Java, which is intended to allow Thrift data to be transferred to scripting languages, this protocol is lossless and fully read-write. It was written by Chad Walters of Powerset and reviewed by David Reiss. Tested by running make check. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665482 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r--test/DebugProtoTest.thrift12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift
index aa3ecef64..bd13d445a 100644
--- a/test/DebugProtoTest.thrift
+++ b/test/DebugProtoTest.thrift
@@ -1,5 +1,16 @@
cpp_namespace thrift.test
+struct Doubles {
+ 1: double nan,
+ 2: double inf,
+ 3: double neginf,
+ 4: double repeating,
+ 5: double big,
+ 6: double small,
+ 7: double zero,
+ 8: double negzero,
+}
+
struct OneOfEach {
1: bool im_true,
2: bool im_false,
@@ -11,6 +22,7 @@ struct OneOfEach {
8: string some_characters,
9: string zomg_unicode,
10: bool what_who,
+ 11: binary base64,
}
struct Bonk {