diff options
Diffstat (limited to 'trunk/TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.cpp')
-rw-r--r-- | trunk/TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/trunk/TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.cpp b/trunk/TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.cpp new file mode 100644 index 00000000000..0aa90db52b6 --- /dev/null +++ b/trunk/TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.cpp @@ -0,0 +1,60 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/NestedUpCalls/MT_Client_Test +// +// = FILENAME +// MT_Object_i.cpp +// +// = DESCRIPTION +// This class implements the Object A of the +// Nested Upcalls - MT Client test. +// +// = AUTHORS +// Michael Kircher +// +// ============================================================================ + +#include "MT_Object_i.h" + +#include "tao/Exception.h" + +ACE_RCSID(MT_Client_Test, MT_Object_i, "$Id$") + +#define MAX_HOP_COUNT 20 + +// CTOR +MT_Object_i::MT_Object_i (void) +{ +} + +// DTOR +MT_Object_i::~MT_Object_i (void) +{ +} + + +CORBA::Long +MT_Object_i::yadda (CORBA::Long hop_count, + MT_Object_ptr partner + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ +#if 0 + ACE_DEBUG ((LM_DEBUG, + "(%P|%t) MT_Object_i::yadda () hop count = %d\n", + hop_count)); +#endif /*if 0*/ + + if (hop_count < MAX_HOP_COUNT) + { + if (partner != 0) + return partner->yadda (hop_count + 1, + this->_this (ACE_ENV_SINGLE_ARG_PARAMETER) + ACE_ENV_ARG_PARAMETER) + 1; + } + + return 0; +} |