typecode

2 posts / 0 new
Last post
Offline
Last seen: 3 years 1 month 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:
12 posts / 0 new
Last post
Offline
Last seen: 7 years 4 months ago
Joined: 03/03/2015
Posts: 19
Sending byte array using DDS_Dynamic Data

Hello,

I'm using the DDS_DynamicData feature to send data of multiple types using RTI DDS. I managed to define my dynamic data type support for simple types (primitives). However, I have more complex data types which I want to send using the DynamicData feature, like arrays, strings, structs, etc. 

I want to make the application as generic as possible, so I don't really want to create a type support for each data type, as I want to send the complex types as "byte array" or something similar. 

11 posts / 0 new
Last post
Offline
Last seen: 8 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

6 posts / 0 new
Last post
Offline
Last seen: 8 years 1 month ago
Joined: 04/29/2016
Posts: 9
TypeCode creation from XML

Is there any available function to create a TypeCode from a XML definition (in C++)?
Preferably without creating any other DDS entities (I do not want a Reader/Writer involved at this point).

I whould like to be able to do something like this, where HelloWorld.xml is the generated XML output of rtiddsgen -convertToXml:

   DDS::TypeCode* tc = XMLtoTypeCode( "HelloWorld.xml" );
   DDS::DynamicData data( tc, DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT );

3 posts / 0 new
Last post
njc
Offline
Last seen: 10 years 8 months ago
Joined: 08/09/2012
Posts: 17
Convert user sample into a DynamicData sample

Hi,

I'd like to convert a user-defined sample into a DynamicData sample so that I can use typecodes to output the message in a custom format (in C++).

2 posts / 0 new
Last post
Offline
Last seen: 12 years 2 months ago
Joined: 08/29/2012
Posts: 1
How deep does DDS_TypeCode::equal() go in checking for type code equality?

I understand version 4.5f does not provide "deep" or "strong" type check during topic discovery, but local subscriber can access the type code of remote publisher from the builtin listener and compare with its own local type code on the same topic.  After receiving the remote type code, can the subscriber just call the DDS_TypeCode::equal() function to check the remote type code agains the local one and achieve "deep" type check? In other words, does the equal() function's comparison recursively reaches down to data members of nested structures?

Organization:
Subscribe to RSS - typecode