Skip to content

Multiplicity Check in Generation Script #11

@pasetti

Description

@pasetti

In function createCrPsDataPoolServHeaders in the Cordet FW Editor code generator, I check whether a data item is an array by checking whether its multiplicity is equal to 1. In the editor, the multiplicity is often defined through a symbolic constant. Thus, with the current implementation, function createCrPsDataPoolServHeaders treats scalars and arrays with a size 1 in the same manner. This is probably not what is intended. The multiplicity check should probably be modified to something like:

IF (there is a symbol representing the multiplicity) OR (the multiplicity is greater than 1) THEN    
   .... /* treat data item as an array */

The problem described here probably also applies to other functions in the generator.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions