Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 1 | |
Kevin Clark | a7e7c04 | 2008-06-18 00:52:05 +0000 | [diff] [blame] | 2 | namespace rb TestNamespace |
Kevin Clark | d5c98ee | 2008-06-18 00:51:45 +0000 | [diff] [blame] | 3 | |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 4 | struct Goodbyez { |
| 5 | 1: i32 val = 325; |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 6 | } |
| 7 | |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 8 | senum Thinger { |
| 9 | "ASDFKJ", |
| 10 | "r32)*F#@", |
| 11 | "ASDFLJASDF" |
| 12 | } |
| 13 | |
| 14 | struct Hello { |
| 15 | 1: i32 simple = 53, |
| 16 | 2: map<i32,i32> complex = {23:532, 6243:632, 2355:532}, |
| 17 | 3: map<i32, map<i32,i32>> complexer, |
| 18 | 4: string words = "words", |
| 19 | 5: Goodbyez thinz = {'val' : 36632} |
| 20 | } |
| 21 | |
| 22 | const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} } |
| 23 | const i32 CINT = 325; |
| 24 | const Hello WHOA = {'simple' : 532} |
| 25 | |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 26 | exception Goodbye { |
| 27 | 1: i32 simple, |
| 28 | 2: map<i32,i32> complex, |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 29 | 3: map<i32, map<i32,i32>> complexer, |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | service SmallService { |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 33 | Thinger testThinger(1:Thinger bootz), |
| 34 | Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g), |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 35 | void testVoid() throws (1: Goodbye g), |
| 36 | i32 testI32(1:i32 boo) |
| 37 | } |