Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

FluxSvc Class Reference

Service that implements the IFluxSvc interface, to return an IFlux object. FluxSvc handles the creation and interfacing with Flux objects. More...

#include <FluxSvc.h>

Inheritance diagram for FluxSvc:

Service IFluxSvc IInterface List of all members.

Public Methods

StatusCode source (std::string name, IFlux*&)
 return pointer to a flux object. More...

std::list<std::string> fluxNames () const
 return a list of possible names. More...

virtual void addFactory (std::string name, const ISpectrumFactory* factory )
 add a new source. More...

virtual HepRandomEngine* getEngine ()
 access to the local random engine (testing). More...

virtual StatusCode initialize ()
 perform initializations for this service. More...

virtual StatusCode finalize ()
 perform the finalization, as required for a service. More...

virtual StatusCode queryInterface ( const IID& riid, void** ppvUnknown )
 Query interface. More...


Protected Methods

 FluxSvc ( const std::string& name, ISvcLocator* al )
 Standard Constructor. More...

virtual ~FluxSvc ()
 destructor. More...


Private Attributes

FluxMgr* m_fluxMgr
std::vector<std::string> m_source_lib
 the user-defined list of acceptable XML sources (from JobOptions.txt). More...

std::string m_source_lib_default
 the default XML file name (from JobOptions.txt). More...


Friends

class  SvcFactory< FluxSvc >

Detailed Description

Service that implements the IFluxSvc interface, to return an IFlux object. FluxSvc handles the creation and interfacing with Flux objects.

Definition at line 21 of file FluxSvc.h.


Constructor & Destructor Documentation

FluxSvc::FluxSvc ( const std::string & name,
ISvcLocator * svc ) [protected]
 

Standard Constructor.

Definition at line 43 of file FluxSvc.cxx.

FluxSvc::~FluxSvc ( ) [protected, virtual]
 

destructor.

Definition at line 72 of file FluxSvc.cxx.


Member Function Documentation

void FluxSvc::addFactory ( std::string name,
const ISpectrumFactory * factory ) [virtual]
 

add a new source.

Reimplemented from IFluxSvc.

Definition at line 130 of file FluxSvc.cxx.

StatusCode FluxSvc::finalize ( ) [virtual]
 

perform the finalization, as required for a service.

Definition at line 108 of file FluxSvc.cxx.

std::list< std::string > FluxSvc::fluxNames ( ) const [virtual]
 

return a list of possible names.

Reimplemented from IFluxSvc.

Definition at line 52 of file FluxSvc.cxx.

Referenced by source().

HepRandomEngine * FluxSvc::getEngine ( ) [virtual]
 

access to the local random engine (testing).

Reimplemented from IFluxSvc.

Definition at line 135 of file FluxSvc.cxx.

StatusCode FluxSvc::initialize ( ) [virtual]
 

perform initializations for this service.

Definition at line 78 of file FluxSvc.cxx.

StatusCode FluxSvc::queryInterface ( const IID & riid,
void ** ppvInterface ) [virtual]
 

Query interface.

Definition at line 117 of file FluxSvc.cxx.

StatusCode FluxSvc::source ( std::string name,
IFlux *& flux ) [virtual]
 

return pointer to a flux object.

Reimplemented from IFluxSvc.

Definition at line 56 of file FluxSvc.cxx.


Friends And Related Function Documentation

class SvcFactory [friend]
 

Allow SvcFactory to instantiate the service.

Definition at line 61 of file FluxSvc.h.


Member Data Documentation

FluxMgr * FluxSvc::m_fluxMgr [private]
 

Definition at line 63 of file FluxSvc.h.

std::vector< std::string > FluxSvc::m_source_lib [private]
 

the user-defined list of acceptable XML sources (from JobOptions.txt).

Definition at line 66 of file FluxSvc.h.

std::string FluxSvc::m_source_lib_default [private]
 

the default XML file name (from JobOptions.txt).

Definition at line 68 of file FluxSvc.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:11 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000