Sequence

5 posts / 0 new
Last post
Offline
Last seen: 8 months 2 weeks ago
Joined: 12/20/2018
Posts: 3
Sequence problem

Problem in assigning a value in sequence

 In idl file containing

Struct B

{

Long id;

sequence <long , 5 > values;

sequence <long , 5 > value2;

}

Struct A

{

Long key;

B  Emp;

}

 

Instance->key =1;

Instance->Emp.id =2;

Both this is correct but when assigning in sequence 

Instance->Emp.value =1; this is causing problem 

It is saying = invalid conversion from int to DDS_LongSeq

Help me 

Keywords:
4 posts / 0 new
Last post
Offline
Last seen: 11 months 3 days ago
Joined: 03/25/2018
Posts: 10
IDL converts sequence<> to struct?

Hi,

 

I have a question of using sequence. I added in seqence in IDL, for example below:

struct myTestSequence_T {

double myFirstVar; //@key

seqence<long,10> mySeqLong;

};

After convertion to C using rtiddsgen, the sequence was translated to struct. See below. 

typedef struct myTestSequence_T{

CDR_double myFirstVar;

struct CDR_LongSeq seqLong;

1 post / 0 new
jwillemsen's picture
Offline
Last seen: 7 months 1 week ago
Joined: 09/24/2013
Posts: 53
Most efficient way to copy a DDS String sequence to std::vector<std::string> and back

I am wondering what is the most efficient (but safe) way to copy a DDS String sequence (using the 'old' DDS C++ API) to a std::vector<std::string> and back? In how far can C++11 move semantics be used safely?

1 post / 0 new
Offline
Last seen: 4 years 10 months ago
Joined: 11/20/2014
Posts: 1
Error when creating Java Objects from JSON

Hi,

   We used RTI Connext 5.1.0 -> Utilities -> code generator to create Java classes from IDL. We are able to create JSON from Java objects using GSON, but we were not able to create Java objects from JSON (deserialization) using GSON and Jackson. We are getting error with sequence parameters, below is log trace.

Organization:
Subscribe to RSS - Sequence