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"
16 #include "ace/OS_NS_unistd.h"
18 AMI_Test_i::AMI_Test_i (CORBA::ORB_ptr orb
,
22 : orb_ (CORBA::ORB::_duplicate (orb
)),
23 number_ ((CORBA::Long
) 931232),
24 yadda_ ((CORBA::Long
) 140474),
26 in_str_(CORBA::string_dup(in_str
)),
27 check_params_(check_params
)
32 AMI_Test_i::foo (CORBA::Long_out out_l
,
38 //if (TAO_debug_level > 0)
40 "%N:%l:(%P:%t):AMI_Test_i::foo: %d %C\n",
47 "Throwing Exception: A::DidTheRightThing\n"));
48 throw A::DidTheRightThing(42, "Hello world");
53 if (in_l_
!= in_l
|| ACE_OS::strcmp(in_str_
.in (), in_str
) != 0)
56 "ERROR: Parameter corruption on in parameters: %d %d %C %C.\n",
57 in_l_
, in_l
, in_str_
.in (), in_str
));
66 AMI_Test_i::shutdown (void)
68 this->orb_
->shutdown (0);
73 AMI_Test_i::yadda (void)
76 "%N:%l:(%P:%t):AMI_Test_i::(get_)yadda\n"));
82 AMI_Test_i::yadda (CORBA::Long yadda
)
85 "%N:%l:(%P:%t):AMI_Test_i::(set_)yadda\n"));
90 AMI_Test_i::inout_arg_test (char *&)
92 // No action, this operation is to test code generation for INOUT
93 // args in AMI operations.