#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_job & | operator= (const at_job &) |
Private Attributes | |
at_service * | death_subscriber |
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.
plumbing::at_job::at_job | ( | ) | [protected] |
plumbing::at_job::at_job | ( | const at_job & | ) | [private] |
The copy constructor. Do not use.
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.
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.
at_service* plumbing::at_job::death_subscriber [private] |
The death_subscriber instance variable is used to remember the plumbing::at_service which will be interested in hearing about our death.