Mercurial > hg > orthanc-stone
annotate Resources/CodeGeneration/test_data/test1.yaml @ 686:0d42bda615a8 am-dev
fix codegen tests
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 16 May 2019 16:45:10 +0200 |
parents | 84af39146e76 |
children |
rev | line source |
---|---|
490 | 1 # |
2 # 1 2 3 4 5 6 7 8 | |
3 # 345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
4 # | |
5 rootName: VsolMessages | |
6 | |
7 struct B: | |
686 | 8 __handler: cpp |
9 | |
490 | 10 someAs: vector<A> |
11 someInts: vector<int32> | |
12 | |
13 struct C: | |
686 | 14 __handler: cpp |
15 | |
490 | 16 someBs: vector<B> |
491 | 17 ddd: vector<string> |
490 | 18 |
19 struct A: | |
686 | 20 __handler: cpp |
21 | |
490 | 22 someStrings: vector<string> |
23 someInts2: vector<int32> | |
24 movies: vector<MovieType> | |
25 | |
493
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
26 struct Message1: |
686 | 27 __handler: cpp |
28 | |
493
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
29 a: int32 |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
30 b: string |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
31 c: EnumMonth0 |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
32 d: bool |
686 | 33 e: float32 |
34 f: float64 | |
493
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
35 |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
36 struct Message2: |
686 | 37 __handler: cpp |
38 | |
628
84af39146e76
CodeGeneration: support default values
Alain Mazy <alain@mazy.be>
parents:
494
diff
changeset
|
39 toto: string = "my-default-value" |
493
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
40 tata: vector<Message1> |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
41 tutu: vector<string> |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
42 titi: map<string, string> |
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
43 lulu: map<string, Message1> |
494
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
44 movieType: MovieType |
493
6fbf2eae7c88
All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents:
491
diff
changeset
|
45 |
490 | 46 enum MovieType: |
47 - RomCom | |
48 - Horror | |
49 - ScienceFiction | |
50 - Vegetables | |
51 | |
52 enum CrispType: | |
494
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
53 - SaltAndPepper |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
54 - CreamAndChives |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
55 - Paprika |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
56 - Barbecue |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
57 |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
58 enum EnumMonth0: |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
59 - January |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
60 - February |
fc17251477d6
TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
bgo-osimis
parents:
493
diff
changeset
|
61 - March |