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


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

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

The destructor.

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

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

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.

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.

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 file:
Generated on Thu Sep 16 14:32:12 2010 for Plumbing by  doxygen 1.6.3