view Resources/CodeGeneration/test_data/test1.yaml @ 493:6fbf2eae7c88 bgo-commands-codegen

All unit tests pass for generation, including handler and dispatcher
author bgo-osimis
date Fri, 22 Feb 2019 10:48:43 +0100
parents 8e7e151ef472
children fc17251477d6
line wrap: on
line source

#
#        1         2         3         4         5         6         7         8
# 345678901234567890123456789012345678901234567890123456789012345678901234567890
#
rootName: VsolMessages

struct B:
  someAs: vector<A>
  someInts: vector<int32>

struct C:
  someBs: vector<B>
  ddd:    vector<string>

struct A:
  someStrings: vector<string>
  someInts2: vector<int32>
  movies: vector<MovieType>

struct Message1:
  a: int32
  b: string
  c: EnumMonth0
  d: bool

struct Message2:
  toto: string
  tata: vector<Message1>
  tutu: vector<string>
  titi: map<string, string>
  lulu: map<string, Message1>

enum MovieType:
  - RomCom
  - Horror
  - ScienceFiction
  - Vegetables

enum CrispType:
 - SaltAndPepper
 - CreamAndChives
 - Paprika
 - Barbecue