Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / NestedUpcall / Triangle_Test / Initiator_i.cpp
blob30cc8292da3b786ae78e05d91c9bb7af12764844
2 //=============================================================================
3 /**
4 * @file Initiator_i.cpp
6 * This class implements the Object A of the
7 * Nested Upcalls - Triangle test.
9 * @author Michael Kircher
11 //=============================================================================
13 #include "tao/Exception.h"
14 #include "Initiator_i.h"
16 // CTOR
17 Initiator_i::Initiator_i (Object_A_ptr object_A_ptr,
18 Object_B_ptr object_B_ptr)
19 : object_A_var_ (Object_A::_duplicate (object_A_ptr)),
20 object_B_var_ (Object_B::_duplicate (object_B_ptr))
24 // DTOR
25 Initiator_i::~Initiator_i ()
29 void
30 Initiator_i::foo_object_B ()
32 ACE_DEBUG ((LM_DEBUG,
33 "(%P|%t) BEGIN Initiator_i::foo_object_B ()\n"));
35 try
37 this->object_B_var_->foo (this->object_A_var_.in ());
38 ACE_DEBUG ((LM_DEBUG,
39 "(%P|%t) Initiator_i::foo_object_B: Returned from call.\n"));
41 catch (const CORBA::Exception& ex)
43 ex._tao_print_exception ("calling the server");
46 ACE_DEBUG ((LM_DEBUG,
47 "(%P|%t) END Initiator_i::foo_object_B ()\n"));