Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Multiple / Multiple_Impl.h
blob67a48bce557580b4ec907f84b85bbc238cb472d3
1 //=============================================================================
2 /**
3 * @file Multiple_Impl.h
5 * This file contains the servant implementation used to test the
6 * new collocation collocation scheme.
8 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
9 */
10 //=============================================================================
12 #ifndef TAO_MULTIPLE_IMPL_H_
13 #define TAO_MULTIPLE_IMPL_H_
15 // -- App. Specific Include --
16 #include "MultipleS.h"
18 /**
19 * @class Bottom_Impl
21 * @brief Bottom_Impl
23 * This class implements the servant for the Bottom interface
24 * defined in the IDL file.
26 class Bottom_Impl : public virtual POA_Multiple::Bottom
28 public:
29 // Ctor-Dtor
30 Bottom_Impl (CORBA::ORB_ptr orb);
31 virtual ~Bottom_Impl ();
33 // IDL Interface Methods
34 virtual char * top_quote ();
36 virtual char * left_quote ();
38 virtual char * right_quote ();
40 virtual char * bottom_quote ();
42 virtual void shutdown ();
43 private:
44 CORBA::ORB_var orb_;
47 /**
48 * @class Delegated_Bottom_Impl
50 * @brief Delegated_Bottom_Impl
52 * This class implements the servant for the Bottom interface
53 * which delegates all the request to another Bottom corba object.
54 * This call forwarding is made using different strategy depending
55 * on the option set for the ORB.
57 class Delegated_Bottom_Impl : public virtual POA_Multiple::Bottom
59 public:
60 // Ctor-Dtor
61 Delegated_Bottom_Impl (Multiple::Bottom_ptr delegate, CORBA::ORB_ptr orb);
62 virtual ~Delegated_Bottom_Impl ();
64 // IDL Interface Methods.
65 virtual char * top_quote ();
66 virtual char * left_quote ();
67 virtual char * right_quote ();
68 virtual char * bottom_quote ();
70 virtual void shutdown ();
72 private:
73 Multiple::Bottom_var delegate_;
75 CORBA::ORB_var orb_;
77 #endif /* TAO_MULTIPLE_IMPL_H_ */