blob: 36ee34998ef69f3ec63483c9ab731c350f6276e2 [file] [log] [blame]
Mark Sleee129a2d2007-02-21 05:17:48 +00001
Kevin Clarka7e7c042008-06-18 00:52:05 +00002namespace rb TestNamespace
Kevin Clarkd5c98ee2008-06-18 00:51:45 +00003
Mark Sleee129a2d2007-02-21 05:17:48 +00004struct Goodbyez {
5 1: i32 val = 325;
Mark Slee9e288d42007-01-24 23:42:12 +00006}
7
Mark Sleee129a2d2007-02-21 05:17:48 +00008senum Thinger {
9 "ASDFKJ",
10 "r32)*F#@",
11 "ASDFLJASDF"
12}
13
14struct 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
22const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} }
23const i32 CINT = 325;
24const Hello WHOA = {'simple' : 532}
25
Mark Slee9e288d42007-01-24 23:42:12 +000026exception Goodbye {
27 1: i32 simple,
28 2: map<i32,i32> complex,
David Reiss0c90f6f2008-02-06 22:18:40 +000029 3: map<i32, map<i32,i32>> complexer,
Mark Slee9e288d42007-01-24 23:42:12 +000030}
31
32service SmallService {
Mark Sleee129a2d2007-02-21 05:17:48 +000033 Thinger testThinger(1:Thinger bootz),
34 Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g),
Mark Slee9e288d42007-01-24 23:42:12 +000035 void testVoid() throws (1: Goodbye g),
36 i32 testI32(1:i32 boo)
37}