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

SctApi::SctApiConfigCache Class Reference

This is supposed to mirror the module configuration banks on the rod. More...

#include <SctApiConfigCache.h>


Public Member Functions

boost::shared_ptr< ModuleBanksgetFromMid (const UINT32 mid)
 return shared pointer to the ABCDModule structure, or null shared pointer if it dosent exist.

boost::shared_ptr< const ModuleBanksgetFromMid (const UINT32 mid) const
void set (UINT32 mid, boost::shared_ptr< ModuleBanks > banks)
 add a module with a particular MID and bank

 SctApiConfigCache ()
 constructor.

 ~SctApiConfigCache ()
 destructor


Private Attributes

std::map< UINT32, boost::shared_ptr<
ModuleBanks > > 
m_map
 The map itself.

boost::mutex cache_mutex


Detailed Description

This is supposed to mirror the module configuration banks on the rod.

It allows the API to check what the configuration looks like, and to only do updates of those parts which are different.

Definition at line 23 of file SctApiConfigCache.h.


Constructor & Destructor Documentation

SctApi::SctApiConfigCache::SctApiConfigCache  ) 
 

constructor.

SctApi::SctApiConfigCache::~SctApiConfigCache  ) 
 

destructor


Member Function Documentation

boost::shared_ptr<ModuleBanks> SctApi::SctApiConfigCache::getFromMid const UINT32  mid  ) 
 

return shared pointer to the ABCDModule structure, or null shared pointer if it dosent exist.

Referenced by SctApi::SctApi::copyABCDModule(), SctApi::SctApi::getABCDModule(), SctApi::SctApi::modifyABCDVarROD(), and SctApi::SctApi::setABCDModule().

void SctApi::SctApiConfigCache::set UINT32  mid,
boost::shared_ptr< ModuleBanks banks
 

add a module with a particular MID and bank

Referenced by SctApi::SctApi::setABCDModule().


Field Documentation

std::map<UINT32, boost::shared_ptr<ModuleBanks> > SctApi::SctApiConfigCache::m_map [private]
 

The map itself.

Definition at line 71 of file SctApiConfigCache.h.


The documentation for this class was generated from the following file:
Generated on Fri Sep 16 18:03:25 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5