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

SctAnalysis::AnalysisAlgorithmMap Class Reference

AnalysisAlgorithmMap maps Tests to AnalysisAlgorithms. More...

#include <AnalysisAlgorithmMap.h>


Public Member Functions

shared_ptr< AnalysisAlgorithmgetAlgorithm (const TestData &testData, const string &moduleName) const throw (Sct::InvalidArgument)
bool setAlgorithm (const string testName, auto_ptr< AnalysisAlgorithm > alg) throw ()
 Sets the algorithm for a given Test name.

string getStatus (string testName)
 Gets a status string for a given type of test.

string getAllStatus ()
 Gets the status for all test types.


Static Public Member Functions

AnalysisAlgorithmMapinstance ()
 Get the singleton instance.


Private Attributes

map< string, shared_ptr< AnalysisAlgorithm > > algMap
 The map.


Detailed Description

AnalysisAlgorithmMap maps Tests to AnalysisAlgorithms.

It is currently done using the Test name.

Author:
Matthew Palmer
Date:
11 June 2003

Definition at line 27 of file AnalysisAlgorithmMap.h.


Member Function Documentation

shared_ptr< AnalysisAlgorithm > SctAnalysis::AnalysisAlgorithmMap::getAlgorithm const TestData testData,
const string &  moduleName
const throw (Sct::InvalidArgument)
 

Parameters:
test The name of the test to analyze
Returns:
An AnalysisAlgorithm of the type registered for test
Exceptions:
InvalidArgument if test is not in the map

Definition at line 17 of file AnalysisAlgorithmMap.cpp.

References Sct::AbstractThrowable::clone(), Sct::InvalidArgument, and Sct::AbstractThrowable::setSeverity().

Here is the call graph for this function:

string SctAnalysis::AnalysisAlgorithmMap::getAllStatus  ) 
 

Gets the status for all test types.

Note:
Nothrow

Definition at line 38 of file AnalysisAlgorithmMap.cpp.

References algMap.

string SctAnalysis::AnalysisAlgorithmMap::getStatus string  testName  ) 
 

Gets a status string for a given type of test.

Note:
Nothrow

Definition at line 31 of file AnalysisAlgorithmMap.cpp.

References algMap.

AnalysisAlgorithmMap & SctAnalysis::AnalysisAlgorithmMap::instance  )  [static]
 

Get the singleton instance.

Definition at line 12 of file AnalysisAlgorithmMap.cpp.

References instance().

Referenced by instance().

Here is the call graph for this function:

bool SctAnalysis::AnalysisAlgorithmMap::setAlgorithm const string  testName,
auto_ptr< AnalysisAlgorithm alg
throw ()
 

Sets the algorithm for a given Test name.

May only be called prior to multi-threading! I.e. at static initialization time.

Parameters:
testName the name of the Test
alg the AnalysisAlgorithm that can analyze them
Returns:
true if successful

Definition at line 26 of file AnalysisAlgorithmMap.cpp.


Field Documentation

map<string, shared_ptr<AnalysisAlgorithm> > SctAnalysis::AnalysisAlgorithmMap::algMap [private]
 

The map.

Definition at line 67 of file AnalysisAlgorithmMap.h.

Referenced by getAllStatus(), and getStatus().


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