diff options
Diffstat (limited to 'modules/CIAO/examples/Hello/Receiver/Receiver_exec.h')
-rw-r--r-- | modules/CIAO/examples/Hello/Receiver/Receiver_exec.h | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/modules/CIAO/examples/Hello/Receiver/Receiver_exec.h b/modules/CIAO/examples/Hello/Receiver/Receiver_exec.h new file mode 100644 index 00000000000..1322eb8d1a2 --- /dev/null +++ b/modules/CIAO/examples/Hello/Receiver/Receiver_exec.h @@ -0,0 +1,105 @@ +//$Id$: +//============================================================ +/** + * @file Receiver_exec.h + * + * Header file for the Executor implementation. + */ +//============================================================ + +#ifndef RECEIVER_EXEC_H +#define RECEIVER_EXEC_H + +#include "ReceiverEC.h" +#include "Receiver_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Receiver_Impl +{ + + /** + * @class Receiver_exec_i + * + * Receiver executor implementation class. + */ + + class RECEIVER_EXEC_Export Receiver_exec_i : + public virtual Receiver_Exec, + public virtual TAO_Local_RefCounted_Object + { + + public: + /// Default constructor. + Receiver_exec_i (); + + /// Default destructor. + ~Receiver_exec_i (); + + // Operation which will be called upon receiving the timeout event. + virtual void + push_click_in (Hello::TimeOut *ev) + ACE_THROW_SPEC ((CORBA::SystemException)); + + // Operations from Components::SessionComponent + virtual void set_session_context (Components::SessionContext_ptr ctx) + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + + virtual void ciao_preactivate () + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + + virtual void ccm_activate () + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + + virtual void ciao_postactivate () + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + + + virtual void ccm_passivate () + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + + virtual void ccm_remove () + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + + protected: + /// Copmponent specific context + Receiver_Exec_Context_var context_; + private: + CORBA::String_var message_; + }; + + /** + * @class ReceiverHome_exec_i + * + * Receiver home executor implementation class. + */ + class RECEIVER_EXEC_Export ReceiverHome_exec_i : + public virtual ReceiverHome_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + /// Default ctor. + ReceiverHome_exec_i (); + + /// Default dtor. + ~ReceiverHome_exec_i (); + + // Implicit home operations. + + virtual ::Components::EnterpriseComponent_ptr + create () + ACE_THROW_SPEC ((CORBA::SystemException, + Components::CCMException)); + }; + + extern "C" RECEIVER_EXEC_Export ::Components::HomeExecutorBase_ptr + createReceiverHome_Impl (void); +} + +#endif /* RECEIVER_EXEC_H */ + |