blob: 23c0653fc13cdc959fac5a4abded79dc0d83117a (
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
44
45
46
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// ace
//
// = FILENAME
// Method_Request.h
//
// = AUTHOR
// Andres Kruse <Andres.Kruse@cern.ch> and Douglas C. Schmidt
// <schmidt@cs.wustl.edu>
//
// ============================================================================
#ifndef ACE_METHOD_OBJECT_H
#define ACE_METHOD_OBJECT_H
#include "ace/OS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class ACE_Export ACE_Method_Request
{
// = TITLE
// Reifies a method into an object. Subclasses typically
// represent necessary state and behavior.
//
// = DESCRIPTION
// A <Method_Request> is inserted in the <Activation_Queue>, where
// it is subsequently removed by the <Scheduler> and invoked.
public:
// = Initialization and termination methods.
ACE_Method_Request (void);
virtual ~ACE_Method_Request (void);
// = Invocation method
virtual int call (void) = 0;
// Invoked when the <Method_Request> is scheduled to run.
};
#endif /* ACE_METHOD_OBJECT_H */
|