Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Multiple / Multiple_Impl.cpp
blobb63bee32eec1fa0a70f4c2b108e42a740e598a30
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 ()
17 char *
18 Bottom_Impl::top_quote ()
20 return CORBA::string_dup(Quote::top);
23 char *
24 Bottom_Impl::left_quote ()
26 return CORBA::string_dup(Quote::left);
29 char *
30 Bottom_Impl::right_quote ()
32 return CORBA::string_dup(Quote::right);
35 char *
36 Bottom_Impl::bottom_quote ()
38 return CORBA::string_dup(Quote::bottom);
41 void
42 Bottom_Impl::shutdown ()
44 this->orb_->shutdown (false);
47 ///////////////////////////////////////////////////////////
48 // Delegated_Bottom_Impl Implementation
50 Delegated_Bottom_Impl::Delegated_Bottom_Impl (Multiple::Bottom_ptr delegate,
51 CORBA::ORB_ptr orb)
52 : delegate_ (delegate)
54 this->orb_ = CORBA::ORB::_duplicate (orb);
57 Delegated_Bottom_Impl::~Delegated_Bottom_Impl ()
59 // No-Op.
62 char *
63 Delegated_Bottom_Impl::top_quote ()
65 ACE_DEBUG ((LM_DEBUG,
66 ACE_TEXT ("Delegating the call: <top_quote>\n")));
68 CORBA::String_var msg =
69 this->delegate_->top_quote ();
70 return msg._retn ();
73 char *
74 Delegated_Bottom_Impl::left_quote ()
76 ACE_DEBUG ((LM_DEBUG,
77 ACE_TEXT ("Delegating the call: <left_quote>\n")));
79 CORBA::String_var msg =
80 this->delegate_->left_quote ();
81 return msg._retn ();
84 char *
85 Delegated_Bottom_Impl::right_quote ()
87 ACE_DEBUG ((LM_DEBUG,
88 ACE_TEXT ("Delegating the call: <right_quote>\n")));
90 CORBA::String_var msg =
91 this->delegate_->right_quote ();
92 return msg._retn ();
95 char *
96 Delegated_Bottom_Impl::bottom_quote ()
98 ACE_DEBUG ((LM_DEBUG,
99 ACE_TEXT ("Delegating the call: <bottom_quote>\n")));
101 CORBA::String_var msg =
102 this->delegate_->bottom_quote ();
103 return msg._retn ();
106 void
107 Delegated_Bottom_Impl::shutdown ()
109 ACE_DEBUG ((LM_DEBUG,
110 ACE_TEXT ("Delegating Shut-Down.\n")));
111 this->delegate_->shutdown ();
112 //this->orb_->shutdown (false);