Mark Slee | a4713ea | 2007-01-05 01:09:04 +0000 | [diff] [blame^] | 1 | cpp_namespace yozone |
| 2 | |
| 3 | struct thing { |
| 4 | 1: i32 hello, |
| 5 | 2: i32 goodbye |
| 6 | } |
| 7 | |
| 8 | const i32 hex_const = 0x0001F |
| 9 | |
| 10 | const i32 GEN_ME = -3523553 |
| 11 | const double GEn_DUB = 325.532 |
| 12 | const double GEn_DU = 085.2355 |
| 13 | const string GEN_STRING = "asldkjasfd" |
| 14 | |
| 15 | const map<i32,i32> GEN_MAP = { 35532 : 233, 43523 : 853 } |
| 16 | const list<i32> GEN_LIST = [ 235235, 23598352, 3253523 ] |
| 17 | |
| 18 | const map<i32, map<i32, i32>> GEN_MAPMAP = { 235 : { 532 : 53255, 235:235}} |
| 19 | |
| 20 | const map<string,i32> GEN_MAP2 = { "hello" : 233, "lkj98d" : 853, 'lkjsdf' : 098325 } |
| 21 | |
| 22 | const thing GEN_THING = { 'hello' : 325, 'goodbye' : 325352 } |
| 23 | |
| 24 | const map<i32,thing> GEN_WHAT = { 35 : { 'hello' : 325, 'goodbye' : 325352 } } |
| 25 | |
| 26 | const set<i32> GEN_SET = [ 235, 235, 53235 ] |
| 27 | |
| 28 | exception Blah { |
| 29 | 1: i32 bing } |
| 30 | |
| 31 | exception Gak {} |
| 32 | |
| 33 | service yowza { |
| 34 | void blingity(), |
| 35 | i32 blangity() throws (1: Blah hoot ) |
| 36 | } |