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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
1 #
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
2 # 1 2 3 4 5 6 7 8
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
3 # 345678901234567890123456789012345678901234567890123456789012345678901234567890
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
4 #
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
5 rootName: VsolMessages
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
6
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
7 struct B:
686
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
8 __handler: cpp
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
9
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
10 someAs: vector<A>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
11 someInts: vector<int32>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
12
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
13 struct C:
686
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
14 __handler: cpp
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
15
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
16 someBs: vector<B>
491
8e7e151ef472 Unit tests pass for enum generation
bgo-osimis
parents: 490
diff changeset
17 ddd: vector<string>
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
18
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
19 struct A:
686
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
20 __handler: cpp
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
21
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
22 someStrings: vector<string>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
23 someInts2: vector<int32>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
24 movies: vector<MovieType>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
25
493
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
26 struct Message1:
686
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
27 __handler: cpp
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
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
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
33 e: float32
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
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
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
37 __handler: cpp
0d42bda615a8 fix codegen tests
Alain Mazy <alain@mazy.be>
parents: 628
diff changeset
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
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
46 enum MovieType:
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
47 - RomCom
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
48 - Horror
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
49 - ScienceFiction
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
50 - Vegetables
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
51
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
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