SctDataDisplay::TestDisplayer Class Reference

Displays stuff common to all tests. More...

#include <TestDisplayer.h>

Inheritance diagram for SctDataDisplay::TestDisplayer:

Inheritance graph
[legend]
Collaboration diagram for SctDataDisplay::TestDisplayer:

Collaboration graph
[legend]

Public Member Functions

 TestDisplayer ()
shared_ptr< DisplayDatadisplay (shared_ptr< const Sct::Serializable > data, const DisplayInfo &info, std::ostream &os)
 Displays some standard stuff common to all TestResults then calls displayTestResult.
virtual bool canDisplay (const Sct::Serializable &ob)
 If the displayer can display the given object, then it should return true It should not do the display!

Protected Member Functions

virtual void displayTestResult (const SctData::TestResult &result, TestDisplayData &data, const DisplayInfo &info, std::ostream &os)
 Should be overriden by subclasses - the default is to call displayAllRaws.
void displayAllRaws (const SctData::TestResult &result, TestDisplayData &data, const DisplayInfo &info, std::ostream &os)
 Displays all the raw data objects associated with the TestResult.

Private Member Functions

void printSummaryString (const SctData::TestResult &result, std::ostream &os)

Static Private Attributes

static bool inList
 true if in the list of GenericDisplayers

Detailed Description

Displays stuff common to all tests.

Author:
Matthew Palmer

Definition at line 32 of file TestDisplayer.h.


Member Function Documentation

bool SctDataDisplay::TestDisplayer::canDisplay const Sct::Serializable ob  )  [virtual]
 

If the displayer can display the given object, then it should return true It should not do the display!

Note:
nothrow

Implements SctDataDisplay::GenericDisplayer.

Definition at line 40 of file TestDisplayer.cpp.

shared_ptr<DisplayData> SctDataDisplay::TestDisplayer::display shared_ptr< const Sct::Serializable data,
const DisplayInfo info,
std::ostream &  os
[virtual]
 

Displays some standard stuff common to all TestResults then calls displayTestResult.

Implements SctDataDisplay::Displayer.

void SctDataDisplay::TestDisplayer::displayAllRaws const SctData::TestResult result,
TestDisplayData data,
const DisplayInfo info,
std::ostream &  os
[protected]
 

Displays all the raw data objects associated with the TestResult.

Definition at line 48 of file TestDisplayer.cpp.

References Sct::Streamable::getClassName(), SctData::TestResult::getModuleName(), SctData::TestResult::getNScans(), SctData::TestResult::getRunNumber(), SctData::TestResult::getScanNumberAt(), SctData::TestResult::getUniqueID(), and Sct::Archive::IOManagerArchiveFile::instance().

Referenced by displayTestResult().

Here is the call graph for this function:

void SctDataDisplay::TestDisplayer::displayTestResult const SctData::TestResult result,
TestDisplayData data,
const DisplayInfo info,
std::ostream &  os
[protected, virtual]
 

Should be overriden by subclasses - the default is to call displayAllRaws.

Definition at line 34 of file TestDisplayer.cpp.

References displayAllRaws().

Here is the call graph for this function:


Field Documentation

bool SctDataDisplay::TestDisplayer::inList [static, private]
 

true if in the list of GenericDisplayers

Definition at line 55 of file TestDisplayer.h.


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