Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ConfigObserverWrapper Class Reference
Inheritance diagram for ConfigObserverWrapper:
Mantid::Kernel::ConfigObserver

Public Member Functions

 ConfigObserverWrapper (PyObject *self)
 
void notifyValueChanged (ConfigValChangeNotification_ptr notification)
 Called when a config property's value is changed.
 
void notifyValueChanged (const std::string &name, const std::string &newValue, const std::string &prevValue)
 Called when a config property's value is changed.
 
void onValueChanged (const std::string &name, const std::string &newValue, const std::string &prevValue) override
 
- Public Member Functions inherited from Mantid::Kernel::ConfigObserver
 ConfigObserver ()
 Begins listening to notifications from the global ConfigService.
 
 ConfigObserver (const ConfigObserver &other)
 Copying a config observer is the same as default constructing one.
 
void notifyValueChanged (ConfigValChangeNotification_ptr notification)
 Called when a config property's value is changed.
 
void notifyValueChanged (const std::string &name, const std::string &newValue, const std::string &prevValue)
 Called when a config property's value is changed.
 
ConfigObserveroperator= (const ConfigObserver &other)
 Nothing to do but we must overload the = operator to prevent a default copy which would produce incorrect results.
 
virtual ~ConfigObserver () noexcept
 

Private Attributes

PyObject * m_self
 

Additional Inherited Members

Detailed Description

Definition at line 18 of file ConfigObserver.cpp.

Constructor & Destructor Documentation

◆ ConfigObserverWrapper()

ConfigObserverWrapper::ConfigObserverWrapper ( PyObject *  self)
inlineexplicit

Definition at line 20 of file ConfigObserver.cpp.

Member Function Documentation

◆ notifyValueChanged() [1/2]

void Mantid::Kernel::ConfigObserver::notifyValueChanged ( ConfigValChangeNotification_ptr  notification)

Called when a config property's value is changed.

Parameters
notificationThe Poco notification object.

Definition at line 25 of file ConfigObserver.cpp.

◆ notifyValueChanged() [2/2]

void Mantid::Kernel::ConfigObserver::notifyValueChanged ( const std::string &  name,
const std::string &  newValue,
const std::string &  oldValue 
)

Called when a config property's value is changed.

Parameters
nameThe name of the property which changed.
newValueThe new value of the property.
oldValueThe old value of the property.

Definition at line 24 of file ConfigObserver.cpp.

◆ onValueChanged()

void ConfigObserverWrapper::onValueChanged ( const std::string &  name,
const std::string &  newValue,
const std::string &  prevValue 
)
inlineoverridevirtual

Implements Mantid::Kernel::ConfigObserver.

Definition at line 23 of file ConfigObserver.cpp.

References m_self, and name.

Referenced by export_ConfigObserver().

Member Data Documentation

◆ m_self

PyObject* ConfigObserverWrapper::m_self
private

Definition at line 28 of file ConfigObserver.cpp.

Referenced by onValueChanged().


The documentation for this class was generated from the following file: