Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs
LiveListenerFactory.h File Reference
#include "MantidAPI/DllConfig.h"
#include "MantidAPI/ILiveListener.h"
#include "MantidKernel/DynamicFactory.h"
#include "MantidKernel/LiveListenerInfo.h"
#include "MantidKernel/SingletonHolder.h"

Go to the source code of this file.

Classes

class  Mantid::API::LiveListenerFactoryImpl
 The factory for creating instances of ILiveListener implementations. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::API
 
namespace  Mantid::Kernel
 

Macros

#define DECLARE_LISTENER(classname)
 

Typedefs

using Mantid::API::LiveListenerFactory = Kernel::SingletonHolder< LiveListenerFactoryImpl >
 

Macro Definition Documentation

◆ DECLARE_LISTENER

#define DECLARE_LISTENER (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper register_listener_##classname( \
((Mantid::API::LiveListenerFactory::Instance().subscribe<classname>(#classname)), 0)); \
}
This class is simply used in the subscription of classes into the various factories in Mantid.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...

Definition at line 17 of file LiveListenerFactory.h.