28 : m_valueChangeListener(*this, &
ConfigObserver::notifyValueChanged) {
58 const std::string &oldValue) {
68 notifyValueChanged(notification->key(), notification->curValue(), notification->preValue());
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
The ConfigObserver is used to observe changes in the configuration based on notifications sent from t...
ConfigObserver & operator=(const ConfigObserver &other)
Nothing to do but we must overload the = operator to prevent a default copy which would produce incor...
void notifyValueChanged(const std::string &name, const std::string &newValue, const std::string &prevValue)
Called when a config property's value is changed.
virtual ~ConfigObserver() noexcept
virtual void onValueChanged(const std::string &name, const std::string &newValue, const std::string &prevValue)=0
Poco::NObserver< ConfigObserver, Mantid::Kernel::ConfigValChangeNotification > m_valueChangeListener
ConfigObserver()
Begins listening to notifications from the global ConfigService.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
const Poco::AutoPtr< Mantid::Kernel::ConfigServiceImpl::ValueChanged > & ConfigValChangeNotification_ptr