#include <ConfigurationInterface.h>
Collaboration diagram for SctAnalysis::ConfigurationInterface:
Public Member Functions | |
ConfigurationInterface (boost::shared_ptr< SctConfiguration::Configuration > config) | |
takes ownership of configuration and subscribes for changes to is | |
~ConfigurationInterface () | |
destructor | |
std::string | getDcsId (const std::string &modulename) const |
get Dcs identifier string CrateXX.ChannelXX for a module | |
void | update () |
rebuild personal map | |
bool | empty () const |
return true if no modules are mapped | |
void | print (std::ostream &os) const |
output some information | |
Static Public Member Functions | |
static void | updateCallback (ISCallbackInfo *isc) |
called when configuration changes | |
Private Member Functions | |
std::string | encode (unsigned partition, unsigned crate, unsigned channel) |
encoding for p_c_c | |
Private Attributes | |
boost::recursive_mutex | m_access |
for thread-safe access: | |
std::map< std::string, std::string > | m_map |
personal map of partition information | |
boost::shared_ptr< SctConfiguration::Configuration > | m_config |
client to the configuration service | |
boost::shared_ptr< ISInfoReceiver > | m_infoReceiver |
needs inforeceiver for watching for callbacks |
Keeps itself up-to-date by subscribing to the IS server which notifies of changes. On notification, obtains power mapping information from ConfigService servant implimentation.
Definition at line 19 of file ConfigurationInterface.h.
|
takes ownership of configuration and subscribes for changes to is
Definition at line 17 of file ConfigurationInterface.cpp. References Sct::SctNames::getPartition(), m_infoReceiver, and updateCallback(). Here is the call graph for this function: ![]() |
|
destructor
Definition at line 24 of file ConfigurationInterface.cpp. |
|
return true if no modules are mapped
Definition at line 39 of file ConfigurationInterface.cpp. References m_map. |
|
encoding for p_c_c
Definition at line 77 of file ConfigurationInterface.cpp. Referenced by update(). |
|
get Dcs identifier string CrateXX.ChannelXX for a module
Definition at line 27 of file ConfigurationInterface.cpp. References m_map. |
|
output some information
Definition at line 84 of file ConfigurationInterface.cpp. |
|
rebuild personal map
Definition at line 43 of file ConfigurationInterface.cpp. References encode(), m_access, m_config, m_map, and SctConfiguration::ConfigurationException::what(). Here is the call graph for this function: ![]() |
|
called when configuration changes
Definition at line 91 of file ConfigurationInterface.cpp. Referenced by ConfigurationInterface(). |
|
for thread-safe access:
Definition at line 42 of file ConfigurationInterface.h. |
|
client to the configuration service
Definition at line 46 of file ConfigurationInterface.h. Referenced by update(). |
|
needs inforeceiver for watching for callbacks
Definition at line 48 of file ConfigurationInterface.h. Referenced by ConfigurationInterface(). |
|
personal map of partition information
Definition at line 44 of file ConfigurationInterface.h. Referenced by empty(), getDcsId(), print(), and update(). |