summaryrefslogtreecommitdiff
path: root/ACE/apps/JAWS2/JAWS/Pipeline_Handler_T.h
blob: 4d4d808fee29637aa005cb5a1ae1454d49a8e0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- c++ -*- */
// $Id$

#ifndef JAWS_PIPELINE_HANDLER_T_H
#define JAWS_PIPELINE_HANDLER_T_H

#include "JAWS/Export.h"
#include "JAWS/Pipeline.h"

template <class TYPE>
class JAWS_Pipeline_Abstract_Handler : public JAWS_Pipeline_Task
  // = TITLE
  //   Methods that are common to pipeline components
{
public:
  JAWS_Pipeline_Abstract_Handler (void);
  virtual ~JAWS_Pipeline_Abstract_Handler (void);
  // ACE_Task hooks

  virtual int put (ACE_Message_Block *mb, ACE_Time_Value *tv = 0);
  // inherited from ACE_Task

  virtual int handle_put (TYPE *data, ACE_Time_Value *tv) = 0;
  // Callback hook for specialized data processing

};

#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "JAWS/Pipeline_Handler_T.cpp"
#endif

#endif /* !defined (JAWS_PIPELINE_HANDLER_T_H) */