Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20631] Update xtypes 1.3 doc #730

Merged
merged 23 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b0e2987
Refs #20359: Updates for xtypes1.3. Removed TypeLookupSettings. Remov…
adriancampo Feb 2, 2024
0197949
Refs #20359: Updates fastddsgen args. Removed TypeObjectFactory. Remo…
adriancampo Feb 4, 2024
8964bb1
Refs #20359: DDSCodeTester updates for DynamicTypes and discovery cal…
adriancampo Mar 4, 2024
a50e0ee
Refs #20359: Updated xtypes doc.
adriancampo Mar 17, 2024
aaa1c9e
Refs #20359: Applied first suggestions.
adriancampo Mar 18, 2024
693c13b
Refs #20359: Updates to discovery and endpoint matching.
adriancampo Mar 20, 2024
b9389cf
Refs #20359: Apply suggestions from code review
adriancampo Mar 21, 2024
0ece561
Refs #20359: Regenerated example types. Removed classes after monitor…
adriancampo Apr 4, 2024
599a362
Refs #20631: apply review suggestions to Fast DDS-Gen usage
JLBuenoLopez Apr 8, 2024
9f25b71
Refs #20631: inheritance not yet supported with XML. Use correct type…
JLBuenoLopez Apr 9, 2024
58ee585
Refs #20631: fix tests: trailing whitespaces
JLBuenoLopez Apr 9, 2024
02773e7
Refs #20631: fix spelling
JLBuenoLopez Apr 9, 2024
366d46a
Refs #20631: migrate to list tables and use proper C++ types
JLBuenoLopez Apr 9, 2024
8fb616c
Refs #20631: rewrite XTypes introduction section
JLBuenoLopez Apr 9, 2024
1226bc4
Refs #20631: rewrite remote data type discovery section
JLBuenoLopez Apr 9, 2024
fb250c4
Refs #20631: implement pending TODO
JLBuenoLopez Apr 9, 2024
1f40ec6
Refs #20631: rewrite XTypes sections and related information
JLBuenoLopez Apr 12, 2024
e45882f
Refs #20631: apply remaining suggestions
JLBuenoLopez Apr 12, 2024
3d4994a
Refs #20631: apply review suggestions
JLBuenoLopez Apr 16, 2024
9bbea0d
Refs #20631: regenerate example types
JLBuenoLopez Apr 16, 2024
ad0d459
Refs #20631: little block comment
richiware Apr 16, 2024
5b85989
Refs #20631: apply review suggestions
JLBuenoLopez Apr 16, 2024
15abe6a
Refs #20631: apply review suggestions
JLBuenoLopez Apr 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
719 changes: 1 addition & 718 deletions code/CodeTester.cpp

Large diffs are not rendered by default.

1,398 changes: 1,157 additions & 241 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;
char my_char;
wchar my_wchar;
octet my_octet;
int8 my_int8;
uint8 my_uint8;
short my_short;
unsigned short my_ushort;
long my_long;
unsigned long my_ulong;
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