#include <ConfigurationInterface.h>
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 | |
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 18 of file ConfigurationInterface.h.
|
takes ownership of configuration and subscribes for changes to is
|
|
destructor
Definition at line 19 of file ConfigurationInterface.cpp. |
|
return true if no modules are mapped
Definition at line 34 of file ConfigurationInterface.cpp. References m_map. |
|
encoding for p_c_c
Definition at line 72 of file ConfigurationInterface.cpp. Referenced by update(). |
|
get Dcs identifier string CrateXX.ChannelXX for a module
Definition at line 22 of file ConfigurationInterface.cpp. References m_map. |
|
output some information
Definition at line 79 of file ConfigurationInterface.cpp. References m_access, and m_map. Referenced by update(). |
|
rebuild personal map
Definition at line 38 of file ConfigurationInterface.cpp. References encode(), m_access, m_config, m_map, and print(). Referenced by updateCallback(). |
Here is the call graph for this function:
|
called when configuration changes
Definition at line 86 of file ConfigurationInterface.cpp. References update(). |
Here is the call graph for this function:
|
for thread-safe access:
Definition at line 41 of file ConfigurationInterface.h. |
|
client to the configuration service
Definition at line 45 of file ConfigurationInterface.h. Referenced by update(). |
|
needs inforeceiver for watching for callbacks
Definition at line 47 of file ConfigurationInterface.h. |
|
personal map of partition information
Definition at line 43 of file ConfigurationInterface.h. Referenced by empty(), getDcsId(), print(), and update(). |