Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / HTIOP / AMI / ami_test_i.cpp
blob2c51abe5a8f56c58ada85b3a45d2abb66c677480
2 //=============================================================================
3 /**
4 * @file ami_test_i.cpp
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"
19 AMI_Test_i::AMI_Test_i (CORBA::ORB_ptr orb)
20 : orb_ (CORBA::ORB::_duplicate (orb)),
21 number_ ((CORBA::Long) 931232),
22 yadda_ ((CORBA::Long) 140474)
26 CORBA::Long
27 AMI_Test_i::foo (CORBA::Long_out out_l,
28 CORBA::Long in_l,
29 const char* in_str)
31 out_l = 931233;
33 //if (TAO_debug_level > 0)
34 ACE_DEBUG ((LM_DEBUG,
35 "%N:%l:(%P:%t):AMI_Test_i::foo: %d %C\n",
36 in_l,
37 in_str));
39 if (in_l == 0)
41 ACE_DEBUG ((LM_DEBUG,
42 "Throwing Exception: A::DidTheRightThing\n"));
43 throw A::DidTheRightThing();
46 return 931234;
51 void
52 AMI_Test_i::shutdown (void)
54 this->orb_->shutdown (0);
58 CORBA::Long
59 AMI_Test_i::yadda (void)
61 ACE_DEBUG ((LM_DEBUG,
62 "%N:%l:(%P:%t):AMI_Test_i::(get_)yadda\n"));
63 return yadda_;
67 void
68 AMI_Test_i::yadda (CORBA::Long yadda)
70 ACE_DEBUG ((LM_DEBUG,
71 "%N:%l:(%P:%t):AMI_Test_i::(set_)yadda\n"));
72 yadda_ = yadda;