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 //=============================================================================
13 #include "ami_test_i.h"
14 #include "tao/debug.h"
16 AMI_Test_i::AMI_Test_i (CORBA::ORB_ptr orb
,
20 : orb_ (CORBA::ORB::_duplicate (orb
)),
21 yadda_ ((CORBA::Long
) 140474),
23 in_str_(CORBA::string_dup(in_str
)),
24 check_params_(check_params
)
29 AMI_Test_i::foo (CORBA::Long_out out_l
,
35 //if (TAO_debug_level > 0)
37 "%N:%l:(%P:%t):AMI_Test_i::foo: %d %C\n",
44 "Throwing Exception: A::DidTheRightThing\n"));
45 throw A::DidTheRightThing(42, "Hello world");
50 if (in_l_
!= in_l
|| ACE_OS::strcmp(in_str_
.in (), in_str
) != 0)
53 "ERROR: Parameter corruption on in parameters: %d %d %C %C.\n",
54 in_l_
, in_l
, in_str_
.in (), in_str
));
63 AMI_Test_i::shutdown ()
65 this->orb_
->shutdown (false);
72 "%N:%l:(%P:%t):AMI_Test_i::(get_)yadda\n"));
77 AMI_Test_i::yadda (CORBA::Long yadda
)
80 "%N:%l:(%P:%t):AMI_Test_i::(set_)yadda\n"));
85 AMI_Test_i::inout_arg_test (char *&)
87 // No action, this operation is to test code generation for INOUT
88 // args in AMI operations.