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

SctFitter::FitStrategyFactory Class Reference

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

#include <FitStrategy.h>

Collaboration diagram for SctFitter::FitStrategyFactory:

Collaboration graph
[legend]

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

FitStrategyFactoryinstance () throw ()
 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

FitStrategyFactorybertha
 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]
 

a reference to the singleton

Definition at line 25 of file FitStrategy.cpp.


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 Thu Jul 15 09:53:56 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5