Mercurial > hg > orthanc-stone
annotate Resources/CodeGeneration/test/test1.jsonc @ 486:8e40355a172b bgo-commands-codegen
Unit tests OK for preambles, enums and structs in both TS and C++
author | bgo-osimis |
---|---|
date | Fri, 15 Feb 2019 14:30:26 +0100 |
parents | 38997ceb9bc6 |
children |
rev | line source |
---|---|
473 | 1 /* |
2 1 2 3 4 5 6 7 | |
3 12345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
4 */ | |
5 { | |
6 "root_name":"test1", | |
7 "types": [ | |
8 { | |
9 "name":"B", | |
10 "kind":"struct", | |
11 "fields": [ | |
12 { | |
13 "name":"someAs", | |
14 "type":"vector<A>" | |
15 }, | |
16 { | |
17 "name":"someInts", | |
18 "type":"vector<int32>" | |
19 } | |
20 ] | |
21 }, | |
22 { | |
474 | 23 "name":"C", |
24 "kind":"struct", | |
25 "fields": [ | |
26 { | |
27 "name":"someBs", | |
28 "type":"vector<B>" | |
29 }, | |
30 { | |
31 "name":"ddd", | |
32 "type":"vector<D>" | |
33 } | |
34 ] | |
35 }, | |
36 { | |
473 | 37 "name":"A", |
38 "kind":"struct", | |
39 "fields": [ | |
40 { | |
41 "name":"someStrings", | |
42 "type":"vector<string>" | |
43 }, | |
44 { | |
45 "name":"someInts2", | |
46 "type":"vector<int32>" | |
47 } | |
48 ] | |
49 }, | |
50 { | |
51 "name":"MovieType", | |
52 "kind":"enum", | |
53 "fields": [ | |
54 { | |
55 "name":"Romcom" | |
56 }, | |
57 { | |
58 "name":"Horror" | |
59 }, | |
60 { | |
61 "name":"ScienceFiction" | |
62 }, | |
63 { | |
64 "name":"Vegetables" | |
65 } | |
66 ] | |
486
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
67 }, |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
68 { |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
69 "name":"CrispType", |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
70 "kind":"enum", |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
71 "fields": [ |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
72 { |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
73 "name":"SaltAndPepper" |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
74 }, |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
75 { |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
76 "name":"CreamAndChives" |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
77 }, |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
78 { |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
79 "name":"Paprika" |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
80 }, |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
81 { |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
82 "name":"Barbecue" |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
83 } |
8e40355a172b
Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents:
474
diff
changeset
|
84 ] |
473 | 85 } |
86 ] | |
87 } |