annotate Resources/CodeGeneration/test_data/test1.yaml @ 628:84af39146e76 am-dev

CodeGeneration: support default values
author Alain Mazy <alain@mazy.be>
date Wed, 08 May 2019 16:32:57 +0200
parents fc17251477d6
children 0d42bda615a8
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:
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
8 someAs: vector<A>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
9 someInts: vector<int32>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
10
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
11 struct C:
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
12 someBs: vector<B>
491
8e7e151ef472 Unit tests pass for enum generation
bgo-osimis
parents: 490
diff changeset
13 ddd: vector<string>
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
14
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
15 struct A:
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
16 someStrings: vector<string>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
17 someInts2: vector<int32>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
18 movies: vector<MovieType>
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
19
493
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
20 struct Message1:
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
21 a: int32
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
22 b: string
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
23 c: EnumMonth0
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
24 d: bool
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
25
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
26 struct Message2:
628
84af39146e76 CodeGeneration: support default values
Alain Mazy <alain@mazy.be>
parents: 494
diff changeset
27 toto: string = "my-default-value"
493
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
28 tata: vector<Message1>
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
29 tutu: vector<string>
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
30 titi: map<string, string>
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
31 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
32 movieType: MovieType
493
6fbf2eae7c88 All unit tests pass for generation, including handler and dispatcher
bgo-osimis
parents: 491
diff changeset
33
490
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
34 enum MovieType:
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
35 - RomCom
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
36 - Horror
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
37 - ScienceFiction
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
38 - Vegetables
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
39
6470248790db ongoing codegen work
bgo-osimis
parents:
diff changeset
40 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
41 - 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
42 - 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
43 - 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
44 - 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
45
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
46 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
47 - 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
48 - 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
49 - March