summaryrefslogtreecommitdiff
path: root/ACE/TAO/DevGuideExamples/AMH_AMI/middle_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/DevGuideExamples/AMH_AMI/middle_i.h')
-rw-r--r--ACE/TAO/DevGuideExamples/AMH_AMI/middle_i.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/ACE/TAO/DevGuideExamples/AMH_AMI/middle_i.h b/ACE/TAO/DevGuideExamples/AMH_AMI/middle_i.h
new file mode 100644
index 00000000000..4ad565afb6b
--- /dev/null
+++ b/ACE/TAO/DevGuideExamples/AMH_AMI/middle_i.h
@@ -0,0 +1,44 @@
+/* -*- C++ -*- $Id$ */
+
+#ifndef MIDDLE_I_H_
+#define MIDDLE_I_H_
+
+#include "middleS.h"
+#include "innerC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class Asynch_Middle_i : public virtual POA_AMH_Middle
+{
+public:
+ //Constructor
+ Asynch_Middle_i (PortableServer::POA_ptr poa, Inner_ptr inner);
+
+ virtual void get_the_answer (AMH_MiddleResponseHandler_ptr _tao_rh,
+ const char * question);
+
+private:
+ PortableServer::POA_var poa_;
+ Inner_var inner_;
+};
+
+// This version of the implementation does not use AMH, It is supplied for
+// comparison. Either this or the asynch version may be used to serve
+// "Middle" objects.
+class Middle_i : public virtual POA_Middle
+{
+public:
+ //Constructor
+ Middle_i (Inner_ptr inner);
+
+ virtual char * get_the_answer (const char * question);
+
+private:
+ PortableServer::POA_var poa_;
+ Inner_var inner_;
+};
+
+
+#endif /* MIDDLE_I_H_ */