Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_ESF_WORKER_H
00014 #define TAO_ESF_WORKER_H
00015
00016 #include "ace/CORBA_macros.h"
00017 #include "ace/os_include/os_stddef.h"
00018
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif
00022
00023 #include "tao/Versioned_Namespace.h"
00024
00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00026
00027 class Object;
00028
00029 namespace CORBA
00030 {
00031 class Environment;
00032 }
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 template<class Object>
00043 class TAO_ESF_Worker
00044 {
00045 public:
00046 virtual ~TAO_ESF_Worker (void);
00047
00048
00049
00050 virtual void set_size(size_t size);
00051
00052
00053 virtual void work (Object *object) = 0;
00054 };
00055
00056 TAO_END_VERSIONED_NAMESPACE_DECL
00057
00058 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00059 #include "orbsvcs/ESF/ESF_Worker.cpp"
00060 #endif
00061
00062 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00063 #pragma implementation ("ESF_Worker.cpp")
00064 #endif
00065
00066 #endif