dynamicType

3 posts / 0 new
Last post
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/29/2021
Posts: 12
Moden C++ DynamicType (i.e TypeCode) serialization and deserialization on 6.0.1

Hi,

I want to serialize a DynamicType instance, write the serialized data to file and then later read it from file and deserialize it.

I have read this thread to know how to convert between a C++ DynamicType instance and a C DDS_TypeCode instance: https://community.rti.com/forum-topic/52-moden-c-dynamictype-ie-typecode-serialization

And I also use this example code as a base for my code: http://community.rti.com/filedepot?cid=5&fid=28

Organization:
6 posts / 0 new
Last post
Offline
Last seen: 1 year 1 week ago
Joined: 11/22/2020
Posts: 1
Enum value name and type from DynamicData

I have defined an enum MyEnum in my IDL with values One and Two. Then I define a struct MyStruct with a single member myEnum of type MyEnum. So far so good.

Now, in my recorder service plugin I'm looking at MyStruct, but in the shape of a DynamicData. I can get the value of the enum with dynamicData.value(int32_t), but how can I translate that to "One" or "Two"? And how can I work out the name of the type ("MyEnum") for that member of the DynamicType? I'm using the modern C++ API of DDS version 6.0.1.

Organization:
1 post / 0 new
jferguson75's picture
Offline
Last seen: 1 year 8 months ago
Joined: 01/28/2020
Posts: 4
Generating StructType from XML

Modern C++

11 posts / 0 new
Last post
Offline
Last seen: 5 years 6 months ago
Joined: 05/02/2016
Posts: 2
5.2 Moden C++ DynamicType (i.e., TypeCode) Serialization

I'm using the RTI Connext 5.2 Modern C++ API and I'm trying to replicate the functionality that is described within this HOWTO (specifically, "typecode serialization" that's referenced in the link within the uploaded files):

https://community.rti.com/howto/dynamicdata-serialization

14 posts / 0 new
Last post
Offline
Last seen: 7 years 6 months ago
Joined: 04/26/2013
Posts: 3
Create topic and type with same name in RTI Prototyper

RE: XML-Based Application Creation Getting Started Guide (Ver 5.0) page 30:

Subscribe to RSS - dynamicType