Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Multiple / Multiple_Impl.h
blob5b1ac326083e7f4e323611e638af55357b869f62
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
29 public:
30 // Ctor-Dtor
31 Bottom_Impl (CORBA::ORB_ptr orb);
32 virtual ~Bottom_Impl (void);
34 // IDL Interface Methods
35 virtual char * top_quote (void);
37 virtual char * left_quote (void);
39 virtual char * right_quote (void);
41 virtual char * bottom_quote (void);
43 virtual void shutdown (void);
44 private:
45 CORBA::ORB_var orb_;
48 /**
49 * @class Delegated_Bottom_Impl
51 * @brief Delegated_Bottom_Impl
53 * This class implements the servant for the Bottom interface
54 * which delegates all the request to another Bottom corba object.
55 * This call forwarding is made using different strategy depending
56 * on the option set for the ORB.
58 class Delegated_Bottom_Impl : public virtual POA_Multiple::Bottom
61 public:
63 // Ctor-Dtor
64 Delegated_Bottom_Impl (Multiple::Bottom_ptr delegate, CORBA::ORB_ptr orb);
65 virtual ~Delegated_Bottom_Impl (void);
67 // IDL Interface Methods.
68 virtual char * top_quote (void);
69 virtual char * left_quote (void);
70 virtual char * right_quote (void);
71 virtual char * bottom_quote (void);
73 virtual void shutdown (void);
75 private:
76 Multiple::Bottom_var delegate_;
78 CORBA::ORB_var orb_;
81 #endif /* TAO_MULTIPLE_IMPL_H_ */