sequences

2 posts / 0 new
Last post
Offline
Last seen: 3 years 1 month ago
Joined: 02/04/2021
Posts: 1
Sequences in IDL

Given the following example of a typedef sequence in IDL:  (this is not actual IDL, just an example)

module data {

typedef sequence <MyData, 10> MyDataSequence;

struct MyStruct {

MyDataSequence  field;

};

};

module message {

valuetype ThisMessage {

public MyDataSequence data;

};

};

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 4 years 3 days ago
Joined: 03/19/2020
Posts: 2
Sequences size

Hi,

I have some nested sequences in my idl file for which I know the limit only at runtime, it can be any value between 1 (or zero for optionals) and 1000. I generated the code using the rtiddsgen with option "unbounded support" for c#.

I searched already for solutions like using "loan".

I atacked an example of the idl file, but in my real use case are more sequences. 

The problem here is that my topic is not published... and I don't see any error or exception...

Any idea about what I am doing wrong? 

Thanks!

Keywords:
4 posts / 0 new
Last post
Offline
Last seen: 6 years 1 month ago
Joined: 07/12/2012
Posts: 51
Copy of samples from sequence in Java API

This question has to do with general programming and concurrency, but since the Java API is an exception

from the other languages in the RTI API, it is a valid question for this  forum I think. According to a post (https://community.rti.com/examples/using-sequences), the Java API does not support deep copy of objects from

sequences. For example the C++ API support copy of object without using Loanable sequences.

Organization:
Keywords:
7 posts / 0 new
Last post
Offline
Last seen: 8 years 11 months ago
Joined: 01/14/2015
Posts: 8
Sequence - SIGABRT invalid pointer (C++)

Hi,

I'm struggling with an embedded sequence within a struct. When I try to send it, the application terminates with a SIGABRT.

Given the following IDL:

-------------------------snip-----------------------------
const long MAX_STRING_LENGTH = 256;

enum StudentStatus{
ENROLLED,
ALUMNI
};

struct Student{
string<MAX_STRING_LENGTH> name;
string<MAX_STRING_LENGTH> familyname;
StudentStatus status;
};

Keywords:
Subscribe to RSS - sequences