view 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
line wrap: on
line source

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

struct B:
  __handler: cpp

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

struct C:
  __handler: cpp

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

struct A:
  __handler: cpp

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

struct Message1:
  __handler: cpp

  a: int32
  b: string
  c: EnumMonth0
  d: bool
  e: float32
  f: float64

struct Message2:
  __handler: cpp

  toto: string = "my-default-value"
  tata: vector<Message1>
  tutu: vector<string>
  titi: map<string, string>
  lulu: map<string, Message1>
  movieType: MovieType

enum MovieType:
  - RomCom
  - Horror
  - ScienceFiction
  - Vegetables

enum CrispType:
  - SaltAndPepper
  - CreamAndChives
  - Paprika
  - Barbecue

enum EnumMonth0:
  - January
  - February
  - March