Mantid
|
#include <AlgorithmFactoryObserver.h>
Public Member Functions | |
AlgorithmFactoryObserver () | |
void | observeUpdate (bool turnOn=true) |
Function will add/remove the observer to the AlgorithmFactory when something is subscribed to it. More... | |
virtual void | updateHandle () |
If something subscribes to the AlgorithmFactory, then this function will trigger. More... | |
virtual | ~AlgorithmFactoryObserver () |
Private Member Functions | |
void | _updateHandle (AlgorithmFactoryUpdateNotification_ptr pNf) |
Private Attributes | |
bool | m_observingUpdate {false} |
Poco::NObserver< AlgorithmFactoryObserver, AlgorithmFactoryUpdateNotification > | m_updateObserver |
Poco::NObserver for SubscribeNotification. More... | |
Definition at line 33 of file AlgorithmFactoryObserver.h.
Mantid::API::AlgorithmFactoryObserver::AlgorithmFactoryObserver | ( | ) |
Definition at line 22 of file AlgorithmFactoryObserver.cpp.
|
virtual |
Definition at line 25 of file AlgorithmFactoryObserver.cpp.
References observeUpdate().
|
private |
Definition at line 60 of file AlgorithmFactoryObserver.cpp.
References UNUSED_ARG, and updateHandle().
void Mantid::API::AlgorithmFactoryObserver::observeUpdate | ( | bool | turnOn = true | ) |
Function will add/remove the observer to the AlgorithmFactory when something is subscribed to it.
turnOn | bool; if this is True then, if not already present, the observer will be added else removed if it's false. |
Definition at line 41 of file AlgorithmFactoryObserver.cpp.
References m_observingUpdate, and m_updateObserver.
Referenced by ~AlgorithmFactoryObserver().
|
virtual |
If something subscribes to the AlgorithmFactory, then this function will trigger.
works by overloading this class and overriding this function.
Reimplemented in Mantid::PythonInterface::AlgorithmFactoryObserverAdapter.
Definition at line 55 of file AlgorithmFactoryObserver.cpp.
Referenced by _updateHandle().
|
private |
Definition at line 43 of file AlgorithmFactoryObserver.h.
Referenced by observeUpdate().
|
private |
Poco::NObserver for SubscribeNotification.
Definition at line 48 of file AlgorithmFactoryObserver.h.
Referenced by observeUpdate().