SctData::ISTestSummary::ISSummaryManager Class Reference

Singleton manager provides the public interface to writing a summary for a particular TestResult. More...

#include <ISSummaryManager.h>


Public Member Functions

void write (const TestResult &t)
 For use by clients Writes to a given ostream the summary.
bool addWriter (const std::string &testname, boost::shared_ptr< ISSummaryWriter > writer)
 concrete ISSummaryWriters should add themselves to the map using this mechanism
boost::shared_ptr< const ISSummaryWritergetWriter (const std::string &classname) const
 get the appropriateISSummaryWriter for the TestResult

Static Public Member Functions

static ISSummaryManagerinstance ()
 get the instance of the singleton

Private Types

typedef map< std::string,
boost::shared_ptr< const
ISSummaryWriter > > 
WriterMap

Private Member Functions

 ~ISSummaryManager ()
 do NOT delete the singleton!
 ISSummaryManager ()
 Singleton.

Private Attributes

WriterMap theMap
 maps TestResult names to ISSummaryWriters


Detailed Description

Singleton manager provides the public interface to writing a summary for a particular TestResult.

Definition at line 33 of file ISSummaryManager.h.


Constructor & Destructor Documentation

SctData::ISTestSummary::ISSummaryManager::~ISSummaryManager  )  [private]
 

do NOT delete the singleton!

Definition at line 20 of file ISSummaryManager.cpp.

SctData::ISTestSummary::ISSummaryManager::ISSummaryManager  )  [private]
 

Singleton.

Definition at line 18 of file ISSummaryManager.cpp.


Member Function Documentation

bool SctData::ISTestSummary::ISSummaryManager::addWriter const std::string &  testname,
boost::shared_ptr< ISSummaryWriter writer
 

concrete ISSummaryWriters should add themselves to the map using this mechanism

Parameters:
testname the name of the TestResult for which this writer will write
writer a shared pointer to the concrete ISSummaryWriter

boost::shared_ptr<const ISSummaryWriter> SctData::ISTestSummary::ISSummaryManager::getWriter const std::string &  classname  )  const
 

get the appropriateISSummaryWriter for the TestResult

Parameters:
classname the name of the TestResult for which the summary is to be written.

Referenced by write().

ISSummaryManager & SctData::ISTestSummary::ISSummaryManager::instance  )  [static]
 

get the instance of the singleton

Definition at line 22 of file ISSummaryManager.cpp.

Referenced by SctAnalysis::AnalysisAlgorithm::finish().

void SctData::ISTestSummary::ISSummaryManager::write const TestResult t  ) 
 

For use by clients Writes to a given ostream the summary.

Definition at line 27 of file ISSummaryManager.cpp.

References Sct::Streamable::getClassName(), and getWriter().

Here is the call graph for this function:


Field Documentation

WriterMap SctData::ISTestSummary::ISSummaryManager::theMap [private]
 

maps TestResult names to ISSummaryWriters

Definition at line 63 of file ISSummaryManager.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:09:06 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6