diff options
Diffstat (limited to 'TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h')
-rw-r--r-- | TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h | 116 |
1 files changed, 60 insertions, 56 deletions
diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h index ec3b0ee0ef2..6599c5ae276 100644 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h +++ b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h @@ -1,16 +1,20 @@ // $Id$ -#if !defined (VISI_MARSHAL_IMPL_H) +#ifndef VISI_MARSHAL_IMPL_H #define VISI_MARSHAL_IMPL_H // to include DSI related files #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "marshalS.h" -class Marshal_SSI_Impl +class Marshal_SSI_Impl : public virtual _sk_Marshal { // =TITLE @@ -25,63 +29,63 @@ public: // destructor virtual void test_short (CORBA::Short s1, - CORBA::Short& s2); + CORBA::Short& s2); // test short - + virtual void test_long (CORBA::Long l1, - CORBA::Long& l2); + CORBA::Long& l2); // test long - + virtual void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); + CORBA::Octet& o2); // test octet - + virtual void test_char (CORBA::Char c1, - CORBA::Char& c2); + CORBA::Char& c2); // test char - + virtual void test_double (CORBA::Double d1, - CORBA::Double& d2); + CORBA::Double& d2); // test double - + virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); + Marshal::Marshal_Struct& ms2); // test struct - + virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); + Marshal::Marshal_Union& u2); // test union - + virtual void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); + CORBA::Any *& a2); // test any - + /* virtual void test_sequence (const Marshal::ShortSeq& s1, - const Marshal::LongSeq& l1, - const Marshal::OctetSeq& o1, - const Marshal::CharSeq& c1, - const Marshal::DoubleSeq& d1, - const Marshal::StructSeq& S1, - const Marshal::UnionSeq& U1, - const Marshal::AnySeq& a1, - Marshal::ShortSeq *& s2, - Marshal::LongSeq *& l2, - Marshal::OctetSeq *& o2, - Marshal::CharSeq *& c2, - Marshal::DoubleSeq *& d2, - Marshal::StructSeq *& S2, - Marshal::UnionSeq *& U2, - Marshal::AnySeq *& a2); - */ + const Marshal::LongSeq& l1, + const Marshal::OctetSeq& o1, + const Marshal::CharSeq& c1, + const Marshal::DoubleSeq& d1, + const Marshal::StructSeq& S1, + const Marshal::UnionSeq& U1, + const Marshal::AnySeq& a1, + Marshal::ShortSeq *& s2, + Marshal::LongSeq *& l2, + Marshal::OctetSeq *& o2, + Marshal::CharSeq *& c2, + Marshal::DoubleSeq *& d2, + Marshal::StructSeq *& S2, + Marshal::UnionSeq *& U2, + Marshal::AnySeq *& a2); + */ virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); + Marshal::AnySeq *& a2); // test sequence virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); + Marshal::Marshal_Recursive *& mr2); // test struct - + }; class Marshal_DSI_Impl : public CORBA::DynamicImplementation @@ -102,45 +106,45 @@ public: private: void test_short (CORBA::Short s1, - CORBA::Short& s2); + CORBA::Short& s2); // test short - + void test_long (CORBA::Long l1, - CORBA::Long& l2); + CORBA::Long& l2); // test long - + void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); + CORBA::Octet& o2); // test octet - + void test_char (CORBA::Char c1, - CORBA::Char& c2); + CORBA::Char& c2); // test char - + void test_double (CORBA::Double d1, - CORBA::Double& d2); + CORBA::Double& d2); // test double - + void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); + Marshal::Marshal_Struct& ms2); // test struct - + void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); + Marshal::Marshal_Union& u2); // test union - + void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); + CORBA::Any *& a2); // test any - + void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); + Marshal::AnySeq *& a2); // test sequence void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); + Marshal::Marshal_Recursive *& mr2); // test struct - + private: //= helper functions - they behave as if they were skeletons void test_short_skel (CORBA::ServerRequest_ptr req); |