ProgressWatch Class Reference

#include <CaDesigner.h>

Inheritance diagram for ProgressWatch:

Inheritance graph
[legend]

List of all members.


Detailed Description

Observer which write out progress percentage when it is changed.

Note:
This code was copy-pasted from FSS (Fast SAT Solver) project.

Definition at line 334 of file CaDesigner.h.


Public Member Functions

 ProgressWatch (AbstractProcess *process, int stepsTotal, std::ostream &streamTo)
 
Parameters:
process Observed process.

virtual ~ProgressWatch ()
virtual void notify ()
 Event notification, usually called by object implementing ISubject interface.

Private Attributes

Private * d

Constructor & Destructor Documentation

ProgressWatch ( AbstractProcess process,
int  stepsTotal,
std::ostream &  streamTo 
)

Parameters:
process Observed process.

Parameters:
stepsTotal Count of steps corresponding to 100% of progress.
streamTo Standard output stream to write to.

Definition at line 682 of file CaDesigner.cpp.

~ProgressWatch (  )  [virtual]

Definition at line 690 of file CaDesigner.cpp.


Member Function Documentation

void notify (  )  [virtual]

Event notification, usually called by object implementing ISubject interface.

Note:
Design pattern observer

Implements IObserver.

Definition at line 694 of file CaDesigner.cpp.

References C_GREEN.


Member Data Documentation

Private* d [private]

Definition at line 350 of file CaDesigner.h.


The documentation for this class was generated from the following files:
Generated on Sat May 2 16:39:40 2009 for nucad by  doxygen 1.5.4