#include <SummaryManager.h>
Public Member Functions | |
| string | write (const TestResult &t) throw (Sct::IoError, Sct::LogicError) |
| For use by clients. | |
| void | write (const TestResult &t, ostream &stream) throw (Sct::IoError, Sct::LogicError) |
| For use by clients Writes to a given ostream the summary. | |
| bool | addWriter (const string &testname, boost::shared_ptr< SummaryWriter > writer) throw (Sct::LogicError) |
| concrete SummaryWriters should add themselves to the map using this mechanism | |
| boost::shared_ptr< const SummaryWriter > | getWriter (const string &classname) const throw (Sct::LogicError) |
| get the appropriateSummaryWriter for the TestResult | |
Static Public Member Functions | |
| static SummaryManager & | instance () throw () |
| get the instance of the singleton | |
Private Types | |
|
typedef map< string, boost::shared_ptr< const SummaryWriter > > | WriterMap |
Private Member Functions | |
| ~SummaryManager () | |
| do NOT delete the singleton! | |
| SummaryManager () | |
| Singleton. | |
| SummaryManager (ostream &out) throw () | |
| not allowed to do this - singleton | |
Private Attributes | |
| WriterMap | theMap |
| maps TestResult names to SummaryWriters | |
Definition at line 39 of file SummaryManager.h.
|
|
do NOT delete the singleton!
Definition at line 22 of file SummaryManager.cpp. |
|
|
Singleton.
Definition at line 20 of file SummaryManager.cpp. |
|
|
not allowed to do this - singleton
|
|
||||||||||||
|
concrete SummaryWriters should add themselves to the map using this mechanism
|
|
|
get the appropriateSummaryWriter for the TestResult
Definition at line 51 of file SummaryManager.cpp. |
|
|
get the instance of the singleton
Definition at line 24 of file SummaryManager.cpp. Referenced by SctAnalysis::AnalysisAlgorithm::finish(), and SctDataDisplay::TestDisplayer::printSummaryString(). |
|
||||||||||||
|
For use by clients Writes to a given ostream the summary.
Definition at line 35 of file SummaryManager.cpp. |
|
|
For use by clients. Returns a string containing the Summary. Definition at line 29 of file SummaryManager.cpp. |
|
|
maps TestResult names to SummaryWriters
Definition at line 75 of file SummaryManager.h. |
1.4.6