Create a IDL with an array as a property of a struct #192
-
How can i create a struct like that:
And when i try to create a struct like that: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Arrays are supported by the OpenDDSharp IDL generator but, as already pointed, need to be defined via a typedef, that is a requirement from the underlying OpenDDS generator. |
Beta Was this translation helpful? Give feedback.
-
And other question. When i execute the command, all compiled successfull but there arent dataWriter and dataReader... Why?? Why didnt appears and with other IDL yes??? |
Beta Was this translation helpful? Give feedback.
Also you must end the struct definition with a semi colon. It could be that an anonymous array is not supported (don't know all the details of what openddsharp supports), you could try using a typedef as we do here https://github.com/RemedyIT/taox11/blob/d1a33c8563529f907e5ea8a20d04b4ee92dbb0de/tests/array/test.idl#L24