Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

SctDataDisplay::DisplayManager Class Reference

Entrance point - handles a mpa between class names and Displayers. More...

#include <DisplayManager.h>


Static Public Member Functions

DisplayManagerinstance ()
 Get the DisplayManager instance.

bool addToMap (string className, shared_ptr< Displayer > displayer)
 Add a Displayer to the map.

shared_ptr< DisplayDatadisplay (shared_ptr< const Sct::Serializable > ob, const DisplayInfo &info, std::ostream &os)
 Display an object.

bool addGeneric (shared_ptr< GenericDisplayer > generic)
 Adds a GenericDisplayer to the list.

bool batchMode ()
 Returns true if the manager is in batch mode.

void setBatchMode (bool b=true)
 Allows one to set the displayer in batch mode, so that all output goes to file.

void OutputCanvases ()
 Write canvases to gif files.


Private Attributes

map< string, shared_ptr< Displayer > > displayerMap
vector< shared_ptr< GenericDisplayer > > genericList
bool m_batchMode


Detailed Description

Entrance point - handles a mpa between class names and Displayers.

Author:
Matthew Palmer

Definition at line 29 of file DisplayManager.h.


Member Function Documentation

bool SctDataDisplay::DisplayManager::addGeneric shared_ptr< GenericDisplayer generic  )  [static]
 

Adds a GenericDisplayer to the list.

These will be used if there is no specific Displayer available

Note:
nothrow

Definition at line 47 of file DisplayManager.cpp.

References genericList, and instance().

Here is the call graph for this function:

bool SctDataDisplay::DisplayManager::addToMap string  className,
shared_ptr< Displayer displayer
[static]
 

Add a Displayer to the map.

Returns true if added. Will not replace a pre-exisiting Displayer.

Definition at line 24 of file DisplayManager.cpp.

References displayerMap, and instance().

Here is the call graph for this function:

bool SctDataDisplay::DisplayManager::batchMode  )  [static]
 

Returns true if the manager is in batch mode.

Definition at line 52 of file DisplayManager.cpp.

References instance(), and m_batchMode.

Here is the call graph for this function:

shared_ptr<DisplayData> SctDataDisplay::DisplayManager::display shared_ptr< const Sct::Serializable ob,
const DisplayInfo info,
std::ostream &  os
[static]
 

Display an object.

Forwards the call to the appropriate Displayer.

Exceptions:
NoDisplayerException if there is no appropriate Displayer.

DisplayManager & SctDataDisplay::DisplayManager::instance  )  [static]
 

Get the DisplayManager instance.

Definition at line 19 of file DisplayManager.cpp.

Referenced by addGeneric(), addToMap(), batchMode(), and setBatchMode().

void SctDataDisplay::DisplayManager::OutputCanvases  )  [static]
 

Write canvases to gif files.

Definition at line 60 of file DisplayManager.cpp.

void SctDataDisplay::DisplayManager::setBatchMode bool  b = true  )  [static]
 

Allows one to set the displayer in batch mode, so that all output goes to file.

Definition at line 56 of file DisplayManager.cpp.

References instance(), and m_batchMode.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 09:53:46 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5