Sequence

2 posts / 0 new
Last post
Ucf bader's picture
Offline
Last seen: 1 year 3 months ago
Joined: 03/10/2021
Posts: 2
Difference between array and sequence

Hello,
I was wondering what is the difference between a sequence (FooSeq) and array, in terms of:
1) order of elements.

2) accessing elements.

3) transmission of data (is only valid elements of a sequence being transmitted?)

4) Which one is a better resolution if  the max size is known.

thanks a lot..

Keywords:
5 posts / 0 new
Last post
Offline
Last seen: 5 years 10 months 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: 6 years 1 month 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: 3 years 5 months ago
Joined: 09/24/2013
Posts: 55
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: 10 years 3 days 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