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

SctFitter::FitStrategyFactory Class Reference

Factory allows dynamic choice of FitStrategies which can be asked for by name. More...

#include <FitStrategy.h>


Public Member Functions

FitStrategygetStrategy (string name) throw (LogicError)
 Get a FitStrategy by name.

bool addToMap (const string &className, FitStrategy &s) throw ()
 Concrete strategies should add themselves to the map, using the same name as they give in getName();.


Static Public Member Functions

FitStrategyFactory & instance () throw ()
 
Returns:
a reference to the singleton



Data Fields

std::map< string, FitStrategy * > strategyMap
 a map of the sub-classes and their names


Private Member Functions

 ~FitStrategyFactory () throw ()
 singleton


Static Private Attributes

FitStrategyFactory * bertha
 pointer to the singleton.


Detailed Description

Factory allows dynamic choice of FitStrategies which can be asked for by name.

Definition at line 68 of file FitStrategy.h.


Constructor & Destructor Documentation

SctFitter::FitStrategyFactory::~FitStrategyFactory   throw () [inline, private]
 

singleton

Definition at line 83 of file FitStrategy.h.


Member Function Documentation

bool SctFitter::FitStrategyFactory::addToMap const string &    className,
FitStrategy   s
throw ()
 

Concrete strategies should add themselves to the map, using the same name as they give in getName();.

Definition at line 39 of file FitStrategy.cpp.

FitStrategy * SctFitter::FitStrategyFactory::getStrategy string    name throw (LogicError)
 

Get a FitStrategy by name.

Definition at line 30 of file FitStrategy.cpp.

FitStrategyFactory & SctFitter::FitStrategyFactory::instance   throw () [static]
 

Returns:
a reference to the singleton

Definition at line 25 of file FitStrategy.cpp.

Referenced by SctAnalysis::AnalysisService::setFitStrategy().


Field Documentation

FitStrategyFactory * SctFitter::FitStrategyFactory::bertha [static, private]
 

pointer to the singleton.

Definition at line 47 of file FitStrategy.cpp.

std::map<string, FitStrategy*> SctFitter::FitStrategyFactory::strategyMap
 

a map of the sub-classes and their names

Definition at line 81 of file FitStrategy.h.


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:38:03 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3