blob: 0b9d839628d762f24fa0561f102e0c622bc5a43d [file] [log] [blame]
David Reiss9a08dc62008-02-27 01:55:17 +00001namespace cpp yozone
Mark Sleea4713ea2007-01-05 01:09:04 +00002
3struct thing {
4 1: i32 hello,
5 2: i32 goodbye
6}
7
Mark Sleed0767c52007-07-27 22:14:41 +00008enum constants {
9 ONE = 1,
10 TWO = 2
11}
12
David Reiss202111d2007-08-06 20:38:18 +000013struct thing2 {
14 1: constants val = TWO
15}
16
17const map<constants,string> GEN_ENUM_NAMES = {ONE : "HOWDY", TWO: PARTNER}
Mark Sleed0767c52007-07-27 22:14:41 +000018
Mark Sleea4713ea2007-01-05 01:09:04 +000019const i32 hex_const = 0x0001F
20
21const i32 GEN_ME = -3523553
22const double GEn_DUB = 325.532
23const double GEn_DU = 085.2355
24const string GEN_STRING = "asldkjasfd"
25
26const map<i32,i32> GEN_MAP = { 35532 : 233, 43523 : 853 }
27const list<i32> GEN_LIST = [ 235235, 23598352, 3253523 ]
28
29const map<i32, map<i32, i32>> GEN_MAPMAP = { 235 : { 532 : 53255, 235:235}}
30
31const map<string,i32> GEN_MAP2 = { "hello" : 233, "lkj98d" : 853, 'lkjsdf' : 098325 }
32
33const thing GEN_THING = { 'hello' : 325, 'goodbye' : 325352 }
34
35const map<i32,thing> GEN_WHAT = { 35 : { 'hello' : 325, 'goodbye' : 325352 } }
36
37const set<i32> GEN_SET = [ 235, 235, 53235 ]
38
39exception Blah {
40 1: i32 bing }
41
42exception Gak {}
43
44service yowza {
45 void blingity(),
46 i32 blangity() throws (1: Blah hoot )
47}