diff options
Diffstat (limited to 'TAO/tests/AMI/test_i.cpp')
-rw-r--r-- | TAO/tests/AMI/test_i.cpp | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/TAO/tests/AMI/test_i.cpp b/TAO/tests/AMI/test_i.cpp new file mode 100644 index 00000000000..bbcb1b2516a --- /dev/null +++ b/TAO/tests/AMI/test_i.cpp @@ -0,0 +1,62 @@ +// $Id$ + +#include "test_i.h" +#include "tao/debug.h" + +#if !defined(__ACE_INLINE__) +#include "test_i.i" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID(MT_Client, test_i, "$Id$") + +void +Simple_Server_i::test_method (CORBA::Environment&) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "%N:%l:(%P:%t):Simple_Server_i::test_method called\n")); +} + +CORBA::Long +Simple_Server_i::get_number (CORBA::Environment&) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "%N:%l:(%P:%t):Simple_Server_i::get_number called\n")); + return (CORBA::ULong) 931232; +} + +void +Simple_Server_i::put_number (CORBA::Long l, + CORBA::Environment &) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "%N:%l:(%P:%t):Simple_Server_i::put_number: %d\n", + l)); +} + +CORBA::Long +Simple_Server_i::get_put_number (CORBA::Long_out out_l, + CORBA::Long in_l, + CORBA::Environment &ACE_TRY_ENV) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + out_l = 931233; + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "%N:%l:(%P:%t):Simple_Server_i::get_put_number: %d\n", + in_l)); + + return 931234; +} + +void +Simple_Server_i::shutdown (CORBA::Environment&) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->orb_->shutdown (0); +} |