Define the size of array

176 views
Skip to first unread message

Hedwin Koning

unread,
Jan 21, 2017, 5:19:29 AM1/21/17
to Franca
I want to be able to define the max size of the arrays used in france instead arrays being unlimited.

The fidl documention mentions that it can be done but does not describe  how to do.

So please share how this can be achieved. Really want to avoid sending hugh amounts of data over bus


Klaus Birken

unread,
Feb 27, 2017, 12:01:45 PM2/27/17
to Franca
Hi,

in general, the Franca deployment language can be used to attach additional information to Franca IDL files. The user guide contains a chapter on this. Deployment language models are text files with extension *.fdepl.

Basically, you first create a deployment _specification_ like the following:

specification MySpecification {
  for arrays {
    MaxArraySize : Integer;
  }
}

After this, you create a deployment _definition_ for each of your typeCollections and interfaces. There, the deployment editor will guide you to specify the MaxArraySize property for each of the arrays used in the IDL models.

Pls keep in mind that deployment models express what might be used by backend tools, e.g., generators and transformations. If the additional information is not used, it is probably not necessary to specify it.

Hope this helps, regards,
Klaus


Reply all
Reply to author
Forward
0 new messages