diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h new file mode 100644 index 00000000000..1c6636f07f1 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h @@ -0,0 +1,51 @@ +/* -*- C++ -*- */ +/** + * @file Worker_Task.h + * + * $Id$ + * + * @author Pradeep Gore <pradeep@oomworks.com> + * + * + */ + +#ifndef TAO_NS_WORKER_TASK_H +#define TAO_NS_WORKER_TASK_H +#include "ace/pre.h" + +#include "notify_export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Method_Request.h" + +/** + * @class TAO_NS_Worker_Task + * + * @brief Base Worker Task. + * + */ +class TAO_Notify_Export TAO_NS_Worker_Task +{ +public: + /// Constuctor + TAO_NS_Worker_Task (void); + + /// Destructor + virtual ~TAO_NS_Worker_Task (); + + /// Exec the request. + virtual void exec (TAO_NS_Method_Request& method_request) = 0; + + /// Shutdown task + virtual void shutdown (void); +}; + +#if defined (__ACE_INLINE__) +#include "Worker_Task.inl" +#endif /* __ACE_INLINE__ */ + +#include "ace/post.h" +#endif /* TAO_NS_WORKER_TASK_H */ |