blob: a6358139ab70952595056a9a130bb5697c6c0da7 [file] [log] [blame]
David Reiss9a08dc62008-02-27 01:55:17 +00001namespace cpp thrift.test
David Reiss8320a922007-08-14 19:59:26 +00002
3struct OldSchool {
4 1: i16 im_int;
5 2: string im_str;
6 3: list<map<i32,string>> im_big;
7}
8
9struct Simple {
10 1: /* :) */ i16 im_default;
11 2: required i16 im_required;
12 3: optional i16 im_optional;
13}
14
15struct Tricky1 {
16 1: /* :) */ i16 im_default;
17}
18
19struct Tricky2 {
20 1: optional i16 im_optional;
21}
22
23struct Tricky3 {
24 1: required i16 im_required;
25}
26
27struct Complex {
28 1: i16 cp_default;
29 2: required i16 cp_required;
30 3: optional i16 cp_optional;
31 4: map<i16,Simple> the_map;
32 5: required Simple req_simp;
33 6: optional Simple opt_simp;
34}
David Reissce161a92007-09-11 22:09:42 +000035
36struct ManyOpt {
37 1: optional i32 opt1;
38 2: optional i32 opt2;
39 3: optional i32 opt3;
40 4: i32 def4;
41 5: optional i32 opt5;
42 6: optional i32 opt6;
43}