We are thrilled to announce that the Modern C++ API for RTI Connext DDS is complete and publicly available now with RTI Connext 5.2 (data sheet). A lot of our customers have already experienced a new way to write DDS code through our preview version—we hope you’ll enjoy it too!
This brand-new C++ programming API, based on the ISO/IEC C++ 2003 Language DDS PSM (DDS-PSM-Cxx) specification, brings modern C++ techniques and patterns to DDS, most notably:
- Generic programming
- Integration with the standard library
- Automatic object lifecycle management, with value types and reference types
- C++11 support: move constructors, initializer lists, lambdas, range for-loops, and more
We’ve also updated the code that rtiddsgen generates for your IDL types.
Where can you start?
- For a quick glance at the new code, see my previous blog post: Create A P2P Distributed Application in Under 35 Lines Of C++11 Code!
- You can get all the details in the API documentation, including a lot of code snippets.
- In our Community portal we have added several downloadable and buildable examples.
- Finally, don’t miss these new best practices that will help you get on track: Don’t Declare Entities As Pointers, and Consider Using a ListenerBinder Instead of a Raw Listener Pointer.
Ah! If your system is using the previous C++ API and you still want to take advantage of all the other great features and bug fixes in 5.2, don’t worry. It’s still fully supported—now we call it the Traditional C++ API.
Stay tuned for more Modern C++ here at the RTI blogs, coming soon!