#include <AsyncJobCalls.h>
Public Types | |
typedef Job | DestClass |
typedef CbcPointer< Job > | JobPointer |
Public Member Functions | |
JobDialer (const JobPointer &aJob) | |
JobDialer (const JobDialer &d) | |
virtual bool | canDial (AsyncCall &call) |
void | dial (AsyncCall &call) |
virtual void | print (std::ostream &os) const =0 |
Public Attributes | |
JobPointer | job |
Protected Member Functions | |
virtual void | doDial ()=0 |
Private Member Functions | |
JobDialer & | operator= (const JobDialer &) |
Detailed Description
class JobDialer< Job >
This is a base class for all job call dialers. It does all the job dialing logic (debugging, handling exceptions, etc.) except for calling the job method. The latter requires knowing the number and type of method parameters. Thus, we add a dial() virtual method that the MemFunT templates below implement for us, calling the job's method with the right params.
Definition at line 25 of file AsyncJobCalls.h.
Member Typedef Documentation
◆ DestClass
Definition at line 28 of file AsyncJobCalls.h.
◆ JobPointer
typedef CbcPointer<Job> JobDialer< Job >::JobPointer |
Definition at line 29 of file AsyncJobCalls.h.
Constructor & Destructor Documentation
◆ JobDialer() [1/2]
JobDialer< Job >::JobDialer | ( | const JobPointer & | aJob | ) |
Definition at line 149 of file AsyncJobCalls.h.
◆ JobDialer() [2/2]
JobDialer< Job >::JobDialer | ( | const JobDialer< Job > & | d | ) |
Definition at line 154 of file AsyncJobCalls.h.
Member Function Documentation
◆ canDial()
Reimplemented in CommCbMemFunT< C, Params_ >, BodyProducerDialer, and BodyConsumerDialer.
Definition at line 160 of file AsyncJobCalls.h.
References AsyncCall::cancel().
Referenced by CommCbMemFunT< C, Params_ >::canDial().
◆ dial()
Definition at line 170 of file AsyncJobCalls.h.
References DBG_CRITICAL, debugs, AsyncCall::debugSection, and AsyncCall::name.
◆ doDial()
◆ operator=()
◆ print()
|
pure virtualinherited |
Implemented in UnaryFunCallbackDialer< Argument1 >, UnaryCbcCallbackDialer< Destination, Argument1 >, UnaryFunDialer< Argument1 >, UnaryCbdataDialer< Argument1 >, NullaryFunDialer, NullaryMemFunT< Job >, NullaryMemFunT< ModXact >, UnaryMemFunT< Job, Data, Argument1 >, UnaryMemFunT< BodyConsumer, BodyPipe::Pointer >, UnaryMemFunT< BodyProducer, BodyPipe::Pointer >, UnaryMemFunT< Job, Argument1, Argument1 & >, ListeningStartedDialer, CommCbMemFunT< C, Params_ >, CommAcceptCbPtrFun, CommConnectCbPtrFun, CommIoCbPtrFun, CommCloseCbPtrFun, CommTimeoutCbPtrFun, EventDialer, and StoreIOStateCb.
Member Data Documentation
◆ job
JobPointer JobDialer< Job >::job |
Definition at line 37 of file AsyncJobCalls.h.
Referenced by NullaryMemFunT< Job >::doDial(), and UnaryMemFunT< Job, Data, Argument1 >::doDial().
The documentation for this class was generated from the following file:
- src/base/AsyncJobCalls.h