In file /home/eternity/Source/Common/Killer/H/killer.h:

class Killer : Debugable

Shuts down all shutdownable objects

Inheritance:

Killer < Debugable


Public Methods

Killer::Killer (LogFile * logFile)
Killer constructor
void Killer::RegisterForShutdown (Shutdownable * victim)
Register yourself for information about shutdown
void Killer::ShutdownAll ()
Call Shutdown() of all victims

Public

methods
Killer (LogFile * logFile)
Constructor
void RegisterForShutdown (Shutdownable * victim)
Join the victims
void ShutdownAll ()
Shutdown all victims

Protected

attributes
list Shutdownable * > victims
list of objects to notify

Inherited from Debugable:

Public Methods

string* Debugable::CreateString(char *firstStr, int firstInt, int secondInt)
Debugable::Debugable(LogFile * debugLogFile)
int Debugable::SetDebugOptions(int newLogOptions)
void Debugable::SetLogFile(LogFile *aLogFile)
void Debugable::WriteString(LogLevel debugLevel, char * format, ...)
Debugable::~Debugable()

Documentation

Shuts down all shutdownable objects. All Shutdownable objects register with Killer when created and he shuts them down when necessary. In fact it calls the Shutdown() method of all Shutdownable objects that have to implement it. Calls Shutdown() method of all shutdownable objects - that is why he stores pointers to all of them. They pass it to him when created.
attributes

list Shutdownable * > victims
list of objects to notify

methods

Killer(LogFile * logFile)
Constructor

void RegisterForShutdown(Shutdownable * victim)
Join the victims

void ShutdownAll()
Shutdown all victims

Killer::Killer(LogFile * logFile)
Killer constructor. Initializes parent classes.
Parameters:
logFile - Killer is Debugable so he needs a log file to write to.
Author:
Venca
See Also:
Shutdownable, Shutdown()

void Killer::RegisterForShutdown(Shutdownable * victim)
Register yourself for information about shutdown. Adds victim to a list of objects that should be notified by calling their method Shutdown when we are going down. Victim has to be Shutdownable - has to implement Shutdown().
Parameters:
victim - object to notify.
Author:
Venca
See Also:
Shutdownable

void Killer::ShutdownAll()
Call Shutdown() of all victims. Victims - objects that asked for it.
Author:
Venca
See Also:
Shutdownable


This class has no child classes.
Author:
Venca
See Also:
Shutdownable

alphabetic index hierarchy of classes


generated by doc++