Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / DevGuideExamples / AMH_AMI / middle_i.h
blobdae7c6f448a560f01d4fa96ee878115323b5b481
1 /* -*- C++ -*- */
3 #ifndef MIDDLE_I_H_
4 #define MIDDLE_I_H_
6 #include "middleS.h"
7 #include "innerC.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 #pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 class Asynch_Middle_i : public virtual POA_AMH_Middle
15 public:
16 //Constructor
17 Asynch_Middle_i (PortableServer::POA_ptr poa, Inner_ptr inner);
19 virtual void get_the_answer (AMH_MiddleResponseHandler_ptr _tao_rh,
20 const char * question);
22 private:
23 PortableServer::POA_var poa_;
24 Inner_var inner_;
27 // This version of the implementation does not use AMH, It is supplied for
28 // comparison. Either this or the asynch version may be used to serve
29 // "Middle" objects.
30 class Middle_i : public virtual POA_Middle
32 public:
33 //Constructor
34 Middle_i (Inner_ptr inner);
36 virtual char * get_the_answer (const char * question);
38 private:
39 PortableServer::POA_var poa_;
40 Inner_var inner_;
44 #endif /* MIDDLE_I_H_ */