c++ modern

3 posts / 0 new
Last post
Last seen: 9 months 2 weeks ago
Joined: 01/22/2021
Posts: 8
Error with DomainParticipant as a member

I am just starting out with RTI Connext using Modern C++. I'm trying to make a class that has a DomainParticipant and some other stuff and am getting errors.

In Foo.h:

#include "dds/domain/DomainParticipant.hpp" 

class Foo {
	Foo(int32_t domain);
	dds::domain::DomainParticipant part;

And in Foo.cpp:

#include "Foo.h"

Foo::Foo(int32_t domain)
{ }

When I try to compile it (and remember there's literally nothing going on) I get an error at the constructor:

8 posts / 0 new
Last post
Last seen: 1 year 7 months ago
Joined: 11/02/2020
Posts: 4
DDS recorder plugin and DynamicData serialization

I am looking at creating a plugin for the dds recorder that can serialize dds data to XCDR2 format and send over a network stream.

I am using rti connext 6.0.1 and the modern c++ API. I can use the function to_cdr_buffer to serialize a DynamicData object but am unsure how to deserialize the byte stream?

6 posts / 0 new
Last post
mpichini's picture
Last seen: 11 months 3 days ago
Joined: 09/16/2015
Posts: 27
Modern C++: compilation warning on rtiddsgen generated classes


I'm trying to use the DDS IDL binding to C++ 2011 but the compilation of the C++ classes generated by the rtiddsgen IDL compiler produces a lot of compilation warnings.

I was wondering if there's any recommendation about g++ compiler options to use when compiling the C++ classes generated by the RTI IDL compiler.

Building for standard C++ binding generates classes that produces few warnings at compile time (even if I would prefer no warning to be raised at all).

My build and target environment is Ubuntu 12.04 and g++ 4.6.3 compiler.

Subscribe to RSS - c++ modern