plumbing::at_job Class Reference

#include <job.h>

Public Member Functions

virtual ~at_job ()
void death_subscribe (at_service *sp)
virtual void process ()=0
void unregister ()

Protected Member Functions

 at_job ()

Private Member Functions

 at_job (const at_job &)
at_joboperator= (const at_job &)

Private Attributes

at_servicedeath_subscriber

Detailed Description

The plumbing::at_job class is used to represent a task to be executed by plumbing::at_service. The time to be invoked in NOT an attribute of these objects.

Definition at line 32 of file job.h.


Constructor & Destructor Documentation

plumbing::at_job::~at_job (  )  [virtual]

The destructor.

Definition at line 22 of file job.cc.

plumbing::at_job::at_job (  )  [protected]

The default construtor. May only be called by derived classes.

Definition at line 38 of file job.cc.

plumbing::at_job::at_job ( const at_job  )  [private]

The copy constructor. Do not use.


Member Function Documentation

void plumbing::at_job::death_subscribe ( at_service sp  ) 

The death_subscribe method is used by the plumbing::at_service::register_job method to as to be notified of this objects destruction. The destructor will call plumbing::at_service::unregister_job in that case.

Definition at line 45 of file job.cc.

at_job& plumbing::at_job::operator= ( const at_job  )  [private]

The assignment operator. Do not use.

virtual void plumbing::at_job::process (  )  [pure virtual]

The process method is used to perform the action of the job, when its time has come.

void plumbing::at_job::unregister (  ) 

The unregister method is a helper wrapper aroun the plumbing::at_service::unregister_job method. It assumes that the jobs is actually registered at the moment.

Definition at line 28 of file job.cc.


Field Documentation

The death_subscriber instance variable is used to remember the plumbing::at_service which will be interested in hearing about our death.

Definition at line 75 of file job.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 14:51:27 2010 for Plumbing by  doxygen 1.6.3