Skip to content

Commit

Permalink
Update xtypes 1.3 doc (#730)
Browse files Browse the repository at this point in the history
* Refs #20359: Updates for xtypes1.3. Removed TypeLookupSettings. Removed auto_fill_typeonject. Renamede discovery methods. Added typelookup_service_threads.

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: Updates fastddsgen args. Removed TypeObjectFactory. Removed on_type_discovery, on_type_dependencies_reply, on_type_information_received, register_remote_type. Updated references to DDS-XTypes V1.3.

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: DDSCodeTester updates for DynamicTypes and discovery callbacks

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: Updated xtypes doc.

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: Applied first suggestions.

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: Updates to discovery and endpoint matching.

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: Apply suggestions from code review

Co-authored-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20359: Regenerated example types. Removed classes after monitor service refactor.

Signed-off-by: adriancampo <adriancampo@eprosima.com>

* Refs #20631: apply review suggestions to Fast DDS-Gen usage

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: inheritance not yet supported with XML. Use correct typelookup service thread name

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: fix tests: trailing whitespaces

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: fix spelling

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: migrate to list tables and use proper C++ types

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: rewrite XTypes introduction section

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: rewrite remote data type discovery section

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: implement pending TODO

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: rewrite XTypes sections and related information

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: apply remaining suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: regenerate example types

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: little block comment

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

* Refs #20631: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #20631: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

---------

Signed-off-by: adriancampo <adriancampo@eprosima.com>
Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Co-authored-by: Ricardo González <ricardo@richiware.dev>
Co-authored-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
  • Loading branch information
3 people authored and EduPonz committed Apr 24, 2024
1 parent 7c7a950 commit 1fdaf00
Show file tree
Hide file tree
Showing 82 changed files with 4,846 additions and 3,364 deletions.
719 changes: 1 addition & 718 deletions code/CodeTester.cpp

Large diffs are not rendered by default.

1,423 changes: 1,175 additions & 248 deletions code/DDSCodeTester.cpp

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions code/DynamicTypesIDLExamples.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
//!--TYPEINFORMATION
@extensibility(APPENDABLE) @nested
struct TypeIdentfierWithSize
{
TypeIdentifier type_id;
unsigned long typeobject_serialized_size;
};

@extensibility(APPENDABLE) @nested
struct TypeIdentifierWithDependencies
{
TypeIdentfierWithSize typeid_with_size;
long dependent_type_id_count;
sequence<TypeIdentfierWithSize> dependent_typeids;
};

@extensibility(MUTABLE) @nested
struct TypeInformation
{
@id(0x1001) TypeIdentifierWithDependencies minimal;
@id(0x1002) TypeIdentifierWithDependencies complete;
};
//!--

//!--TYPEOBJECT
@extensibility(APPENDABLE) @nested
union TypeObject switch(octet)
{
case EK_COMPLETE:
CompleteTypeObject complete;
case EK_MINIMAL:
MinimalTypeObject minimal;
};
//!--

//!--IDL_PRIMITIVES
struct PrimitivesStruct
{
boolean my_bool;
octet my_octet;
char my_char;
wchar my_wchar;
long my_long;
unsigned long my_ulong;
int8 my_int8;
uint8 my_uint8;
short my_short;
unsigned short my_ushort;
long long my_longlong;
unsigned long long my_ulonglong;
float my_float;
double my_double;
long double my_longdouble;
};
//!--

//!--IDL_STRINGS
struct StringsStruct
{
string my_string;
wstring my_wstring;
string<41925> my_bounded_string;
wstring<20925> my_bounded_wstring;
};
//!--

//!--IDL_ENUM
enum MyEnum
{
A,
B,
C
};

struct EnumStruct
{
MyEnum my_enum;
};
//!--

//!--IDL_BITMASK
@bit_bound(8)
bitmask MyBitMask
{
@position(0) flag0,
flag1,
flag2,
@position(5) flag5
};

struct BitmaskStruct
{
MyBitMask my_bitmask;
};
//!--

//!--IDL_TYPEDEF
typedef MyEnum MyAliasedEnum;
typedef string<100> MyAliasedBoundedString;
typedef MyAliasedEnum MyRecursiveAlias;

struct AliasStruct
{
MyAliasedEnum my_aliased_enum;
MyAliasedBoundedString my_aliased_bounded_string;
MyRecursiveAlias my_recursive_alias;
};
//!--

//!--IDL_SEQUENCES
struct SequenceStruct
{
sequence<MyBitmask> bitmask_sequence;
sequence<short, 5> short_sequence;
};
//!--

//!--IDL_ARRAYS
struct ArrayStruct
{
long long_array[2][3][4];
};
//!--

//!--IDL_MAPS
struct MapStruct
{
map<string, MyAliasedBoundedString> string_alias_unbounded_map;
map<short, long, 2> short_long_map;
};
//!--

//!--IDL_STRUCT
struct InnerStruct
{
@id(0x10) long first;
};

struct ParentStruct
{
float first;
long long second;
};

struct ComplexStruct : ParentStruct
{
InnerStruct complex_member;
};
//!--

//!--IDL_UNION
union InnerUnion switch (short)
{
case 0:
@id(0x10) PrimitivesStruct first;
case 1:
default:
long long second;
};

union ComplexUnion switch (long)
{
case 0:
case 1:
long third;
default:
InnerUnion fourth;
};
//!--

//!--IDL_BITSET
bitset ParentBitSet
{
bitfield<3> a;
bitfield<1> b;
bitfield<4>;
bitfield<10> c;
bitfield<12, short> d;
};

bitset ChildBitSet : ParentBitSet
{
bitfield<1> e;
bitfield<20, unsigned long> f;
};

struct BitsetStruct
{
ChildBitSet my_bitset;
};
//!--

//!--IDL_CUSTOM_ANNOTATION
@annotation MyAnnotation
{
short length;
};

@MyAnnotation(length = 5)
struct AnnotatedStruct
{
@MyAnnotation(length = 10) string string_var;
};
//!--
168 changes: 0 additions & 168 deletions code/Examples/C++/DDSHelloWorld/src/HelloWorld.cxx

This file was deleted.

Loading

0 comments on commit 1fdaf00

Please sign in to comment.