view Resources/CodeGeneration/test_data/testTestStoneCodeGen.yaml @ 973:38409549db43 toa2019082903

Log with addresses + added fingerprint mechanism to avoid calling zombie objects where: - a message is sent with a receiver - the receiver dies - another receiver with the SAME address is created - the message reply is executed --> execution on the wrong object! (since their "identity" is their address. The fix is to identify them with an UUID stored at creation time)
author Benjamin Golinvaux <bgo@osimis.io>
date Thu, 29 Aug 2019 18:07:55 +0200
parents f185cfcb72a0
children
line wrap: on
line source

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

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

  memberInt32: int32
  memberString: string
  memberEnumMonth: EnumMonth0
  memberBool: bool
  memberFloat32: float32
  memberFloat64: float64

struct Message2:
  __handler: [cpp, ts]

  memberString: string
  memberStringWithDefault: string = "my-default-value"
  memberVectorOfMessage1: vector<Message1>
  memberVectorOfString: vector<string>
  memberMapStringString: map<string, string>
  memberMapStringStruct: map<string, Message1>
  memberMapEnumFloat: map<CrispType, float32>
  memberEnumMovieType: MovieType
  memberJson: json

enum MovieType:
  - RomCom
  - Horror
  - ScienceFiction
  - Vegetables

enum CrispType:
  - SaltAndPepper
  - CreamAndChives
  - Paprika
  - Barbecue

enum EnumMonth0:
  - January
  - February
  - March