10template <
typename Observer>
void modifyObserver(
const bool turnOn,
bool &isObserving,
Observer &observer) {
11 if (turnOn && !isObserving) {
13 }
else if (!turnOn && isObserving) {
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
virtual void updateHandle()
If something subscribes to the AlgorithmFactory, then this function will trigger.
AlgorithmFactoryObserver()
Poco::NObserver< AlgorithmFactoryObserver, AlgorithmFactoryUpdateNotification > m_updateObserver
Poco::NObserver for SubscribeNotification.
void _updateHandle(AlgorithmFactoryUpdateNotification_ptr pNf)
void observeUpdate(bool turnOn=true)
Function will add/remove the observer to the AlgorithmFactory when something is subscribed to it.
virtual ~AlgorithmFactoryObserver()
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::DynamicFactory< Algorithm >::UpdateNotification > & AlgorithmFactoryUpdateNotification_ptr