Skip to content

Commit

Permalink
New idl for testing setting the MemberId (#17)
Browse files Browse the repository at this point in the history
* Refs #20084. New idl to tests MemberId settings

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

* Refs #20084. A derived class cannot has key

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

* Refs #20084. Apply suggestions

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

---------

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware authored Dec 11, 2023
1 parent 275011e commit bc2dd38
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 2 deletions.
5 changes: 5 additions & 0 deletions IDL/appendable.idl
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ struct AppendableInheritanceStruct : AppendableShortStruct
struct AppendableInheritanceEmptyStruct : AppendableShortStruct
{
};

struct AppendableExtensibilityInheritance : AppendableShortStruct
{
long var_long;
};
5 changes: 5 additions & 0 deletions IDL/final.idl
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ struct FinalInheritanceStruct : FinalShortStruct
struct InheritanceEmptyStruct : FinalShortStruct
{
};

struct FinalExtensibilityInheritance : FinalShortStruct
{
long var_long;
};
4 changes: 2 additions & 2 deletions IDL/key.idl
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ struct KeyedEmptyStruct

struct KeyedEmptyInheritanceStruct : KeyedEmptyStruct
{
@key string key_str;
string key_str;
string var_str;
};

struct KeyedInheritanceStruct : KeyedShortStruct
{
@key string key_str;
string key_str;
string var_str;
};

Expand Down
103 changes: 103 additions & 0 deletions IDL/member_id.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
@mutable
struct FixId
{
@id(100) octet o;
@id(300) short s;
@id(500) long l;
long long ll;
};

@mutable
struct FixHashidDefault
{
@hashid octet o;
@hashid short s;
@hashid long l;
long long ll;
};

@mutable
struct FixHashid
{
@hashid("octet") octet o;
@hashid("short") short s;
@hashid("long") long l;
long long ll;
};

@mutable
struct FixMix
{
@id(100) octet o;
@hashid short s;
@hashid("long") long l;
long long ll;
};

@mutable
@autoid
struct AutoidDefault
{
char c;
@id(100) octet o;
@hashid short s;
@hashid("long") long l;
long long ll;
};

@mutable
@autoid(SEQUENTIAL)
struct AutoidSequential
{
char c;
@id(100) octet o;
@hashid short s;
@hashid("long") long l;
long long ll;
};

@mutable
@autoid(HASH)
struct AutoidHash
{
char c;
@id(100) octet o;
@hashid short s;
@hashid("long") long l;
long long ll;
};

@autoid
struct DerivedAutoidDefault : AutoidDefault
{
char cd;
@id(101) octet od;
@hashid short sd;
@hashid("long2") long ld;
long long lld;
};

@autoid(SEQUENTIAL)
struct DerivedEmptyAutoidSequential : AutoidSequential
{
};

@autoid(SEQUENTIAL)
struct DerivedAutoidSequential : DerivedEmptyAutoidSequential
{
char cd;
@id(101) octet od;
@hashid short sd;
@hashid("long2") long ld;
long long lld;
};

@autoid(HASH)
struct DerivedAutoidHash : AutoidHash
{
char cd;
@id(101) octet od;
@hashid short sd;
@hashid("long2") long ld;
long long lld;
};
5 changes: 5 additions & 0 deletions IDL/mutable.idl
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ struct MutableInheritanceStruct : MutableShortStruct
struct MutableInheritanceEmptyStruct : MutableShortStruct
{
};

struct MutableExtensibilityInheritance : MutableShortStruct
{
long var_long;
};

0 comments on commit bc2dd38

Please sign in to comment.