summaryrefslogtreecommitdiff
path: root/ace/RMCast/RMCast_Worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/RMCast/RMCast_Worker.h')
-rw-r--r--ace/RMCast/RMCast_Worker.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/ace/RMCast/RMCast_Worker.h b/ace/RMCast/RMCast_Worker.h
new file mode 100644
index 00000000000..d3eb3032ebc
--- /dev/null
+++ b/ace/RMCast/RMCast_Worker.h
@@ -0,0 +1,36 @@
+/* -*- C++ -*- */
+// $Id$
+//
+
+#ifndef ACE_RMCAST_WORKER_H
+#define ACE_RMCAST_WORKER_H
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+template<class KEY, class ITEM>
+class ACE_RMCast_Worker
+{
+public:
+ virtual ~ACE_RMCast_Worker (void);
+
+ virtual int work (KEY const & key,
+ ITEM const & item) = 0;
+};
+
+#if defined (__ACE_INLINE__)
+#include "RMCast_Worker.i"
+#endif /* __ACE_INLINE__ */
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "RMCast_Worker.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("RMCast_Worker.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+#endif /* ACE_RMCAST_WORKER_H */