summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/ami4ccm/examples/Hello/AMI/AMI_MyFoo_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/connectors/ami4ccm/examples/Hello/AMI/AMI_MyFoo_i.h')
-rw-r--r--modules/CIAO/connectors/ami4ccm/examples/Hello/AMI/AMI_MyFoo_i.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/modules/CIAO/connectors/ami4ccm/examples/Hello/AMI/AMI_MyFoo_i.h b/modules/CIAO/connectors/ami4ccm/examples/Hello/AMI/AMI_MyFoo_i.h
new file mode 100644
index 00000000000..472886fb1a0
--- /dev/null
+++ b/modules/CIAO/connectors/ami4ccm/examples/Hello/AMI/AMI_MyFoo_i.h
@@ -0,0 +1,110 @@
+// $Id$
+
+#ifndef AMI_MyFoo_i_H
+#define AMI_MyFoo_i_H
+
+#include "AMIS.h"
+#include "ace/Task.h"
+
+namespace CCM_CORBA_AMI_MyFoo_Impl
+{
+ //============================================================
+ // Implementation of the AMI CORBA FOO reply handler
+ //============================================================
+ class AMI_MyFoo_reply_handler : public POA_Hello::AMI_MyFooHandler
+ {
+ public:
+ AMI_MyFoo_reply_handler (
+ ::Hello_AMI::AMI_MyFooCallback_ptr foo_callback);
+ ~AMI_MyFoo_reply_handler (void);
+
+ void
+ foo (
+ CORBA::Long result,
+ const char * out_str);
+
+ void
+ foo_excep (
+ ::Messaging::ExceptionHolder * excep_holder);
+
+ void
+ hello (
+ CORBA::Long answer);
+
+ void
+ hello_excep (
+ ::Messaging::ExceptionHolder * excep_holder);
+
+ void
+ get_rw_attrib (
+ ::CORBA::Short ami_return_val);
+
+ void
+ get_rw_attrib_excep (
+ ::Messaging::ExceptionHolder * excep_holder);
+
+ void
+ set_rw_attrib ();
+
+ void
+ set_rw_attrib_excep (
+ ::Messaging::ExceptionHolder * excep_holder);
+
+ void
+ get_ro_attrib (
+ ::CORBA::Short ami_return_val);
+
+ void
+ get_ro_attrib_excep (
+ ::Messaging::ExceptionHolder * excep_holder);
+ private:
+ ::Hello_AMI::AMI_MyFooCallback_var foo_callback_;
+ };
+
+ class AMI_MyFoo_i : public POA_Hello::MyFoo
+ {
+ public:
+ /// ctor
+ AMI_MyFoo_i (
+ CORBA::ORB_ptr orb,
+ ::Hello::MyFoo_ptr foo_receiver);
+
+ // The AMI methods.
+ CORBA::Long
+ foo (
+ const char * in_str,
+ CORBA::String_out out_str);
+
+ void
+ hello (
+ CORBA::Long_out answer);
+
+ CORBA::Short
+ rw_attrib (void);
+
+ void
+ rw_attrib (
+ CORBA::Short rw_attrib);
+
+ CORBA::Short
+ ro_attrib (void);
+
+ private:
+ CORBA::ORB_var orb_;
+ ::Hello::MyFoo_var foo_receiver_;
+ };
+
+ // CORBA server which delivers the MyFoo interface
+ class CORBA_MyFoo_server : public ACE_Task_Base
+ {
+ public:
+ CORBA_MyFoo_server (
+ ::Hello::MyFoo_ptr foo_receiver);
+ virtual int svc (void);
+
+ private:
+ ::Hello::MyFoo_var foo_receiver_;
+ };
+}
+#endif /* AMI_MyFoo_i_H */
+