-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change IDL generation to remove "//@top-level" and use "@nested #493
Comments
This issue is related with RemedyIT/ciaox11#428, AXCIOMA is moving from |
A couple of questions.
@final
struct TestData_msg {
// ...
}; //@top-level true should become @final
@nested(TRUE)
struct TestData_msg {
// ...
}; Is this correct?
|
@final
@nested(FALSE)
struct TestData_msg {
// ...
};
|
@eposse I agree with Johnny above. Let me know if you have any other questions |
Two more questions:
|
I am not sure what you mean by default. We don't have any selectable options for "top-level" at the moment, so I wouldn't expect there to be any for "nested" now. As far as I know, if we have a struct (CXStruct), it should be @nested(TRUE) and if we have a message (DDSMessage) it should be @nested(FALSE) |
By default I meant that any declared CXStruct or DDSMessage was "nested", but your answer clarifies that CXStructs are nested and DDSMessages are not. But the second question is still relevant. While it is clear that a DDSMessage must have the |
Yes, I believe that is how it works currently with top-level, right? At least looking through generated IDL that we have, that is the case. |
Signed-off-by: Ernesto Posse <eposse.gmail.com>
Signed-off-by: Ernesto Posse <eposse.gmail.com>
I've tested the solution and prepared the builds for you to test: Let me know if you have any issues. |
Signed-off-by: Ernesto Posse <eposse.gmail.com>
Signed-off-by: Ernesto Posse <eposse.gmail.com>
Here are the updated builds: Let me know if you have any further comments. |
Signed-off-by: Ernesto Posse <eposse.gmail.com>
Signed-off-by: Ernesto Posse <eposse.gmail.com>
And the latest updated build: |
By the way, should I add these changes to the streams/v2.5.x-maintenance branch too? |
No, that streams maintenance branch is meant to work with a specific version of AXCIOMA (which maybe we should document in CX? Not sure) and that version of AXCIOMA does not use @nested, it only uses the top-level annotation |
Ok. Let me know when you have tested to merge it. Thanks. |
I have tested the v2 stream and it worked as expected. So I think you can merge them. |
Issue #493: change IDL generation replacing //@top-level with @nested
Issue #493: change IDL generation replacing //@top-level with @nested
Closing |
Issue and tracking information
Developer's time Estimated effort to fix (hours):
Developer's Actual time spent on fix (hours)
Issue reporter to provide a detailed description of the issue in the space below
For our generated IDL structure and messages, we have "//@top-level true/false" appended to every definition. While this is valid RTI DDS syntax, it is not valid for all DDS vendors or IDL in general. Instead, we would like this changed to be the equivalent @nested prepended to the structure definition in a similar fashion to the @final/@appendable values (i.e. no prefixed comments). The values also become the opposite. So:
"//@top-level true" becomes "@nested(FALSE)" and
"//@top-level false" becomes "@nested(TRUE)"
We want this change made to the following branches:
The text was updated successfully, but these errors were encountered: