2 //=============================================================================
6 * Implementation of the AMI Test interface.
8 * @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
9 * @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
11 //=============================================================================
14 #include "ami_test_i.h"
15 #include "tao/debug.h"
17 AMI_Test_i::AMI_Test_i (CORBA::ORB_ptr orb
,
21 : orb_ (CORBA::ORB::_duplicate (orb
)),
22 yadda_ ((CORBA::Long
) 140474),
24 in_str_(CORBA::string_dup(in_str
)),
25 check_params_(check_params
)
30 AMI_Test_i::foo (CORBA::Long_out out_l
,
36 //if (TAO_debug_level > 0)
38 "%N:%l:(%P:%t):AMI_Test_i::foo: %d %C\n",
45 "Throwing Exception: A::DidTheRightThing\n"));
46 throw A::DidTheRightThing();
51 if (in_l_
!= in_l
|| ACE_OS::strcmp(in_str_
.in (), in_str
) != 0)
54 "ERROR: Parameter corruption on in parameters: %d %d %C %C.\n",
55 in_l_
, in_l
, in_str_
.in (), in_str
));
64 AMI_Test_i::shutdown ()
66 this->orb_
->shutdown (false);
74 "%N:%l:(%P:%t):AMI_Test_i::(get_)yadda\n"));
80 AMI_Test_i::yadda (CORBA::Long yadda
)
83 "%N:%l:(%P:%t):AMI_Test_i::(set_)yadda\n"));
88 AMI_Test_i::inout_arg_test (char *&)
90 // No action, this operation is to test code generation for INOUT
91 // args in AMI operations.