Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Multiple / Multiple_Impl.cpp
blobb451595ee00f6ceec794670218a2e94fc4014c0f
1 #include "Multiple_Impl.h"
2 #include "Collocation_Tester.h"
4 ///////////////////////////////////////////////////////////
5 // Bottom_Impl Implementation
6 //
8 Bottom_Impl::Bottom_Impl (CORBA::ORB_ptr orb)
10 this->orb_ = CORBA::ORB::_duplicate (orb);
13 Bottom_Impl::~Bottom_Impl (void)
15 // No-Op.
18 char *
19 Bottom_Impl::top_quote ( )
21 return CORBA::string_dup(Quote::top);
24 char *
25 Bottom_Impl::left_quote ( )
27 return CORBA::string_dup(Quote::left);
30 char *
31 Bottom_Impl::right_quote ( )
33 return CORBA::string_dup(Quote::right);
36 char *
37 Bottom_Impl::bottom_quote ( )
39 return CORBA::string_dup(Quote::bottom);
42 void
43 Bottom_Impl::shutdown (void)
45 this->orb_->shutdown (0);
48 ///////////////////////////////////////////////////////////
49 // Delegated_Bottom_Impl Implementation
51 Delegated_Bottom_Impl::Delegated_Bottom_Impl (Multiple::Bottom_ptr delegate,
52 CORBA::ORB_ptr orb)
53 : delegate_ (delegate)
55 this->orb_ = CORBA::ORB::_duplicate (orb);
58 Delegated_Bottom_Impl::~Delegated_Bottom_Impl (void)
60 // No-Op.
63 char *
64 Delegated_Bottom_Impl::top_quote (void)
66 ACE_DEBUG ((LM_DEBUG,
67 ACE_TEXT ("Delegating the call: <top_quote>\n")));
69 CORBA::String_var msg =
70 this->delegate_->top_quote ();
71 return msg._retn ();
74 char *
75 Delegated_Bottom_Impl::left_quote (void)
77 ACE_DEBUG ((LM_DEBUG,
78 ACE_TEXT ("Delegating the call: <left_quote>\n")));
80 CORBA::String_var msg =
81 this->delegate_->left_quote ();
82 return msg._retn ();
85 char *
86 Delegated_Bottom_Impl::right_quote (void)
88 ACE_DEBUG ((LM_DEBUG,
89 ACE_TEXT ("Delegating the call: <right_quote>\n")));
91 CORBA::String_var msg =
92 this->delegate_->right_quote ();
93 return msg._retn ();
96 char *
97 Delegated_Bottom_Impl::bottom_quote (void)
99 ACE_DEBUG ((LM_DEBUG,
100 ACE_TEXT ("Delegating the call: <bottom_quote>\n")));
102 CORBA::String_var msg =
103 this->delegate_->bottom_quote ();
104 return msg._retn ();
107 void
108 Delegated_Bottom_Impl::shutdown (void)
110 ACE_DEBUG ((LM_DEBUG,
111 ACE_TEXT ("Delegating Shut-Down.\n")));
112 this->delegate_->shutdown ();
113 //this->orb_->shutdown (0);