PubSub XML parser does not allow the use of Array or matrix
In the file sopc_xml_loader.c
, parsing for variables enforces the ValueRank
to -1 (Single value).
It should be provided as API a means to create Arrays or Matrixes.
For example add an arrayRank
attribute with values 0, 1 or 2 (see attached example: 0 actually sets -1 for value rank)
Another solution could be to provide an attribute arrayLength="xx"
to instanciate an array of given length (Single value if unspecified). This could be extended to arrayLength="xx,yy"
for a matrix.
However, in both cases, the cache
feateure will have to be updated (GetSource & Set Target variables) to handle case for arrays (length checking, memory reallocation, copying etc).