diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h new file mode 100644 index 00000000000..f3001e69aef --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h @@ -0,0 +1,51 @@ +/* -*- C++ -*- */ +// $Id$ +// +// ============================================================================ +// +// = LIBRARY +// ORBSVCS Real-time Event Channel +// +// = FILENAME +// ESF_Worker +// +// = AUTHOR +// Carlos O'Ryan (coryan@cs.wustl.edu) +// +// = CREDITS +// http://www.cs.wustl.edu/~coryan/EC/index.html +// +// ============================================================================ + +#ifndef TAO_ESF_WORKER_H +#define TAO_ESF_WORKER_H + +#include "tao/corba.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +template<class Object> +class TAO_ESF_Worker +{ +public: + virtual ~TAO_ESF_Worker (void); + + virtual void work (Object *object, + CORBA::Environment &ACE_TRY_ENV) = 0; +}; + +#if defined (__ACE_INLINE__) +#include "ESF_Worker.i" +#endif /* __ACE_INLINE__ */ + +#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) +#include "ESF_Worker.cpp" +#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ + +#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) +#pragma implementation ("ESF_Worker.cpp") +#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ + +#endif /* TAO_ESF_WORKER_H */ |