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

SctApi::SctApiConfigCache::ModuleBanks Class Reference

Class to hold different ABCDModule configurations for a particular module. More...

#include <SctApiConfigCache.h>


Public Member Functions

boost::shared_ptr< ABCDModule > get (BankType b)
 get a config for a particular BankType

boost::shared_ptr< const ABCDModule > get (BankType b) const
 get a config for a particular BankType (const)

void copy (BankType from, BankType to)
 make deep copy of a particular bank , using cloneABCDModule if from bank does not exist, then nothing happens

void copy (BankType from, std::list< BankType > to)
 make deep copy of a particular bank , using cloneABCDModule if from bank does not exist, then nothing happens

void set (BankType, boost::shared_ptr< ABCDModule > config)
 set contents of a bank


Private Attributes

std::map< BankType, boost::shared_ptr<
ABCDModule > > 
m_map
boost::recursive_mutex bank_mutex


Detailed Description

Class to hold different ABCDModule configurations for a particular module.

Definition at line 60 of file SctApiConfigCache.h.


Member Function Documentation

void SctApi::SctApiConfigCache::ModuleBanks::copy BankType  from,
std::list< BankType >  to
 

make deep copy of a particular bank , using cloneABCDModule if from bank does not exist, then nothing happens

void SctApi::SctApiConfigCache::ModuleBanks::copy BankType  from,
BankType  to
 

make deep copy of a particular bank , using cloneABCDModule if from bank does not exist, then nothing happens

boost::shared_ptr<const ABCDModule> SctApi::SctApiConfigCache::ModuleBanks::get BankType  b  )  const
 

get a config for a particular BankType (const)

Returns:
null pointer if not in map

boost::shared_ptr<ABCDModule> SctApi::SctApiConfigCache::ModuleBanks::get BankType  b  ) 
 

get a config for a particular BankType

Returns:
null pointer if not in map

void SctApi::SctApiConfigCache::ModuleBanks::set BankType  ,
boost::shared_ptr< ABCDModule >  config
 

set contents of a bank


The documentation for this class was generated from the following file:
Generated on Thu Dec 15 21:17:38 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5