Skip to content

Commit

Permalink
Rename changes, add interface using bitset
Browse files Browse the repository at this point in the history
    * tests/idl4/bitset/client.cpp:
    * tests/idl4/bitset/test.idl:
  • Loading branch information
jwillemsen committed Oct 23, 2024
1 parent d44f00b commit 3cbdd26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
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 3cbdd26

Please sign in to comment.