rtiddsgen template

4 posts / 0 new
Last post
Offline
Last seen: 10 months 3 weeks ago
Joined: 09/07/2018
Posts: 10
Using rtiddsgen template files

Hi,

I am trying to change the default CPP behavior of rtiddsgen for:

file.idl:  const string str_name = "my string";

The default is to create the following code in the header file:

file.h:  static const DDS_Char * str_name= "my string";

But this creates a new static string in every object the header file is included and also gives warnings in every object that it's not used.

Subscribe to RSS - rtiddsgen template