Rtiddsgen2 and #pragma statements

4 posts / 0 new
Last post
Offline
Last seen: 5 months 1 week ago
Joined: 01/01/2017
Posts: 15
Rtiddsgen2 and #pragma statements

Hi,

Following up to Rtiddsgen2 and custom directives, I have a related question:

Is it possible to access #pragma lines from the Velocity config files?

I would like to implement for C++11 the #pragma range directive defined by the CORBA Ada mapping section 8.13.{1,2}.

(This is close in spirit to the OP's request but uses #pragma in place of the special comments.)

- Oliver

jwillemsen's picture
Offline
Last seen: 2 years 10 months ago
Joined: 09/24/2013
Posts: 55

IDL4 defines a range annotation, maybe that is easier to access, see section 8.3.3.2 from the IDL4 specification (see http://www.omg.org/spec/IDL/4.0/)

Offline
Last seen: 5 months 1 week ago
Joined: 01/01/2017
Posts: 15

Indeed, the IDL4 annotations are the way to go, thanks for pointing out.

jwillemsen's picture
Offline
Last seen: 2 years 10 months ago
Joined: 09/24/2013
Posts: 55

The operator dot support from C++17 looks an interesting feature to implement a range annotation, haven't got time to try this out.