comparison Resources/CodeGeneration/README.md @ 494:fc17251477d6 bgo-commands-codegen

TS and CPP tests OK. Ongoing code for C++ program that reads list of serialized messages in N files. Requires conan
author bgo-osimis
date Sat, 23 Feb 2019 10:18:13 +0100
parents f6b7f113cf27
children 6405435480ae
comparison
equal deleted inserted replaced
493:6fbf2eae7c88 494:fc17251477d6
1 class TestMessage { 1 Requirements
2 s1: string; 2 ----------------
3 s2: Array<string>;
4 s3: Array<Array<string>>;
5 s4: Map<string, number>;
6 s5: Map<number, Array<string>>;
7 s6: Color;
8 s7: boolean;
9 }
10 3
11 --> 4 Install Node and npm.
12 5
13 {"s2":["toto","toto2","toto3"],"s4":{"toto":1999,"tatata":1999},"s6":0,"s7":true} 6 Then:
7 - `npm install browserify`
8 - `npm install typescript`
9 - `npm install tsify`
14 10
15 (absent fields weren't specified)
16
17
18 type:B
19 value:{"someAs":[{...},{},{}]}.........................
20 Deserialize
21
22 jsonValue
23
24