Skip to content

Commit

Permalink
Merge pull request #406 from jwillemsen/jwi-bitsettest2
Browse files Browse the repository at this point in the history
Bitset changes
  • Loading branch information
jwillemsen authored Oct 23, 2024
2 parents d44f00b + 5e401e1 commit 4ce6321
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ridlbe/c++11/writers/servantsource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def check_idl_type(idl_type)
when IDL::Type::Enum
visitor(EnumVisitor).visit_sarg_traits(res_idl_type.node) unless is_tracked?(res_idl_type.node)
when IDL::Type::BitSet
visitor(BitsetVisitor).visit_sarg_traits(res_idl_type.node)# unless is_tracked?(res_idl_type.node)
visitor(BitsetVisitor).visit_sarg_traits(res_idl_type.node) unless is_tracked?(res_idl_type.node)
when IDL::Type::BitMask
visitor(BitmaskVisitor).visit_sarg_traits(res_idl_type.node) unless is_tracked?(res_idl_type.node)
when IDL::Type::Union
Expand Down
2 changes: 1 addition & 1 deletion tests/idl4/bitset/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

int main (int /*argc*/, char* /*argv*/[])
{
MyBitset mbs1;
MyBitset1 mbs1;

// Just compilation test
TAOX11_TEST_INFO << "mbs1: " << mbs1 << std::endl;
Expand Down
20 changes: 17 additions & 3 deletions tests/idl4/bitset/test.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* @copyright Copyright (c) Remedy IT Expertise BV
*/

bitset MyBitset {
bitset MyBitset1 {
bitfield<1> x;
bitfield<3> a;
bitfield<12, short> d;
bitfield<33> tt;
};

bitset MyBitset2 : MyBitset {
bitset MyBitset2 : MyBitset1 {
bitfield<3> c;
bitfield<2>;
};
Expand All @@ -22,9 +22,23 @@ bitset MyBitset3 : MyBitset2 {
bitfield<4, int8>;
};

bitset MyBitset5
bitset MyBitset4
{
bitfield<3> g;
bitfield<10> h;
bitfield<12, long> i;
};

module Test
{
interface Foo
{
MyBitset1 test_mybitset1 (in MyBitset1 sin, inout MyBitset1 sinout, out MyBitset1 sout);
MyBitset2 test_mybitset2 (in MyBitset2 sin, inout MyBitset2 sinout, out MyBitset2 sout);
MyBitset3 test_mybitset3 (in MyBitset3 sin, inout MyBitset3 sinout, out MyBitset3 sout);
MyBitset4 test_mybitset4 (in MyBitset4 sin, inout MyBitset4 sinout, out MyBitset4 sout);

/// A method to shutdown the ORB
oneway void shutdown ();
};
};

0 comments on commit 4ce6321

Please sign in to comment.