blob: dd5634d6bda349c24947948838ca89f2f919e510 [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
Kevin Clark4bd89162008-07-08 00:47:49 +000014struct BoolPasser {
15 1: bool value = 1
16}
17
Mark Sleee129a2d2007-02-21 05:17:48 +000018struct Hello {
19 1: i32 simple = 53,
20 2: map<i32,i32> complex = {23:532, 6243:632, 2355:532},
21 3: map<i32, map<i32,i32>> complexer,
22 4: string words = "words",
23 5: Goodbyez thinz = {'val' : 36632}
24}
25
26const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} }
27const i32 CINT = 325;
28const Hello WHOA = {'simple' : 532}
29
Mark Slee9e288d42007-01-24 23:42:12 +000030exception Goodbye {
31 1: i32 simple,
32 2: map<i32,i32> complex,
David Reiss0c90f6f2008-02-06 22:18:40 +000033 3: map<i32, map<i32,i32>> complexer,
Mark Slee9e288d42007-01-24 23:42:12 +000034}
35
36service SmallService {
Mark Sleee129a2d2007-02-21 05:17:48 +000037 Thinger testThinger(1:Thinger bootz),
38 Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g),
Mark Slee9e288d42007-01-24 23:42:12 +000039 void testVoid() throws (1: Goodbye g),
40 i32 testI32(1:i32 boo)
41}