David Reiss | 9a08dc6 | 2008-02-27 01:55:17 +0000 | [diff] [blame] | 1 | namespace cpp thrift.test |
David Reiss | 8320a92 | 2007-08-14 19:59:26 +0000 | [diff] [blame] | 2 | |
| 3 | struct OldSchool { |
| 4 | 1: i16 im_int; |
| 5 | 2: string im_str; |
| 6 | 3: list<map<i32,string>> im_big; |
| 7 | } |
| 8 | |
| 9 | struct Simple { |
| 10 | 1: /* :) */ i16 im_default; |
| 11 | 2: required i16 im_required; |
| 12 | 3: optional i16 im_optional; |
| 13 | } |
| 14 | |
| 15 | struct Tricky1 { |
| 16 | 1: /* :) */ i16 im_default; |
| 17 | } |
| 18 | |
| 19 | struct Tricky2 { |
| 20 | 1: optional i16 im_optional; |
| 21 | } |
| 22 | |
| 23 | struct Tricky3 { |
| 24 | 1: required i16 im_required; |
| 25 | } |
| 26 | |
| 27 | struct 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 Reiss | ce161a9 | 2007-09-11 22:09:42 +0000 | [diff] [blame] | 35 | |
| 36 | struct 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 | } |