blob: 42e787906faa0e19f5eb25528d15a3141e245b42 [file] [log] [blame]
David Reiss8320a922007-08-14 19:59:26 +00001cpp_namespace thrift.test
2
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}