IDL code generation c++

2 posts / 0 new
Last post
ilya_1725's picture
Offline
Last seen: 1 year 10 months ago
Joined: 04/20/2020
Posts: 24
Using 6.0.1 C++ API with no exceptions

This is a continuation of this question. We are using RTI version 6.0.1. Our base code has exceptions disabled with -fno-exceptions.

Is there a way to use any of the C++ APIs with no exceptions? I've tried all the different language options in rtiddsgen and except for C langiage all the generated code uses exceptions.

4 posts / 0 new
Last post
ilya_1725's picture
Offline
Last seen: 1 year 10 months ago
Joined: 04/20/2020
Posts: 24
Structure with a member named "major"

I have a simple IDL that is sending version information:

@final
struct version {
    uint16 major;
    uint16 minor;
    uint16 patch;
    uint16 build_number;
};

The generator generates a proper class `version` with all the felds. However, then during the compile I get this error:

11 posts / 0 new
Last post
Offline
Last seen: 4 years 5 months ago
Joined: 04/09/2019
Posts: 5
failed to create data sample from cdr buffer

Hi, I have this error  "Failed to create Foo from cdr buffer" when I implemented the code below. The struct Foo is written inside an IDL file. This only happens if there's sequence<> in the IDL file. Is this a known issue in RTI Connext DDS 5.3.1?

struct Foo{
    sequence<double, 1000> x;
};

int main(int argc, char* argv[]) {

4 posts / 0 new
Last post
Offline
Last seen: 5 years 4 months ago
Joined: 01/08/2016
Posts: 3
Compiler problems in generated C++ code

Hello all,

I've run into a number of problems when compiling the C++ code generated from my IDLs in Visual Studio 2013.  I've fixed them manually but I'd like to ask whether it's the "right" fix.  Also consider this a bug report, I suppose :)

Facets of my environment:
1. The code is generated from a hierarchy of IDL files with lots of #includes, inheritance, and composition using included types as fields.
2. I'm using the IDLs of a project in-progress, so I can submit some changes back to them but only if necessary.

2 posts / 0 new
Last post
Offline
Last seen: 8 years 10 months ago
Joined: 06/16/2015
Posts: 1
Does rtiddsgen version 5.1.0 output XML like it does in 5.0.0?

On the RTI Code Generator 2.0 Architecture Overview powerpoint (RTI_rttiddsgen_architecture.pptx), it says on the 6th slide that "The AST is equivalent to the simplified XML generated with rtiddsgen 1".  Does this mean that rtiddsgen 2 (which, as I understand, comes with RTI Connext version 5.1.0) will no longer output the simplified XML?

Organization:
4 posts / 0 new
Last post
Offline
Last seen: 11 years 1 month ago
Joined: 01/07/2013
Posts: 15
IDL and C++ generation

Hi everybody,

I found some issues in IDL to C++ generation. For example if I have defined in the IDL two struct like these:

struct alpha{
  long x;
  beta y;
}

struct beta{
  long z;
}

The generation process (rtiddsgen) end correctly but the C++ code cannot compile because the order of the symbol is invalid (it cannot find the symbol beta). If I declare the struct beta before the struct alpha all works fine.

Subscribe to RSS - IDL code generation c++