diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
commit | 06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch) | |
tree | 8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/examples/Swapping/Receiver/Receiver_exec.h | |
parent | d66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff) | |
download | ATCD-06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b.tar.gz |
Diffstat (limited to 'CIAO/examples/Swapping/Receiver/Receiver_exec.h')
-rw-r--r-- | CIAO/examples/Swapping/Receiver/Receiver_exec.h | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/CIAO/examples/Swapping/Receiver/Receiver_exec.h b/CIAO/examples/Swapping/Receiver/Receiver_exec.h new file mode 100644 index 00000000000..f5896f9e60f --- /dev/null +++ b/CIAO/examples/Swapping/Receiver/Receiver_exec.h @@ -0,0 +1,108 @@ +//$Id$: +//============================================================ +/** + * @file Receiver_exec.h + * + * Header file for the Executor implementation. + */ +//============================================================ + +#ifndef RECEIVER_EXEC_H +#define RECEIVER_EXEC_H + +#include "ciao/CIAO_SwapExecC.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 ReceiverSwap_exec_i : + public virtual CIAO::Swap_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + ReceiverSwap_exec_i (); + + ~ReceiverSwap_exec_i (); + + virtual ::Components::EnterpriseComponent_ptr + incarnate (); + + virtual ::Components::EnterpriseComponent_ptr + etherealize (); + }; + + 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); + + // Operations from Components::SessionComponent + virtual void set_session_context (Components::SessionContext_ptr ctx); + + virtual void ciao_preactivate (); + + virtual void ccm_activate (); + + virtual void ciao_postactivate (); + + + virtual void ccm_passivate (); + + virtual void ccm_remove (); + + 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 (); + }; + + extern "C" RECEIVER_EXEC_Export ::Components::HomeExecutorBase_ptr + createReceiverHome_Impl (void); +} + +#endif /* RECEIVER_EXEC_H */ + + |