summaryrefslogtreecommitdiff
path: root/ace/Method_Object.h
blob: 49daaff39d5d60636f861787a2219e3f18b0ad38 (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
33
34
35
36
37
38
39
40
41
42
43
/* -*- C++ -*- */
// $Id$


// ============================================================================
//
// = LIBRARY
//    ace
// 
// = FILENAME
//    Method_Object.h
//
// = AUTHOR
//    Andres Kruse <Andres.Kruse@cern.ch> and Douglas C. Schmidt
//    <schmidt@cs.wustl.edu> 
// 
// ============================================================================

#if !defined (ACE_METHOD_OBJECT_H)
#define ACE_METHOD_OBJECT_H

#include "ace/OS.h"

class ACE_Export ACE_Method_Object 
  // = TITLE
  //     Reifies a method into an object.  Subclasses typically
  //     represent necessary state and behavior.
  //
  // = DESCRIPTION
  //     A <Method_Object> is inserted in the <Activation_Queue>, where
  //     it is subsequently removed by the <Scheduler> and invoked.
{
public:
  // = Initialization and termination methods.
  ACE_Method_Object (void);
  virtual ~ACE_Method_Object (void);

  // = Invocation method
  virtual int call (void) = 0;
  // Invoked when the <Method_Object> is scheduled to run.
};

#endif /* ACE_METHOD_OBJECT_H */