10 #ifndef __PROCESSOR_MANAGER_H__
11 #define __PROCESSOR_MANAGER_H__
21 #include <QtCore/QMutex>
22 #include <QtCore/QReadWriteLock>
504 static shared_pointer
instance(std::string outputfilename);
522 static shared_pointer::element_type&
reference();
539 std::tr1::shared_ptr<IdList>
keys();
id_t
List of all currently registered processors.
Event to store all LCLS Data.
const keyList_t & activeList()
retrieve the list of active processors
Processor::shared_pointer getProcessorSPointer(const Processor::name_t &name)
retreive pp with name
Processor::name_t key_t
type of proccessor accessor key
void operator()(const CASSEvent &event)
process event
std::list< Processor::shared_pointer > processors_t
Container of all currently active processors.
void aboutToQuit()
will be called when program will quit
std::tr1::shared_ptr< IdList > keys()
retrieve all activated processors keys
std::tr1::shared_ptr< IdList > _keys
the list of keys.
container and call handler for all registered processors.
processors_t _processors
container for user selected and registered processors
void loadSettings(size_t)
Load active processors and histograms.
Processor::shared_pointer create(const key_t &key)
factory to create new processor with the name key.
std::string _outputfilename
filename of the output file
Processor::names_t keyList_t
List of all processor keys.
std::list< name_t > names_t
define the list of names
base class for processors.
static shared_pointer _instance
pointer to the singleton instance
static shared_pointer instance()
return the already created instance of this
ProcessorManager(std::string outputfilename)
Private constructor of singleton.
keyList_t _active
list of active keys
file contains processors baseclass declaration
binary function for averaging.
Processor & getProcessor(const Processor::name_t &name)
retreive pp with key
static QMutex _mutex
Singleton operation locker.
QReadWriteLock lock
a read write lock
std::tr1::shared_ptr< ProcessorManager > shared_pointer
a shared pointer of this class
ProcessorManager & operator=(const ProcessorManager &)
Prevent assignment (potentially resulting in a copy) of singleton.
static shared_pointer::element_type & reference()
return a reference to this instance
std::string name_t
define the name type
std::tr1::shared_ptr< Processor > shared_pointer
a shared pointer of this
processors_t & processors()
retrieve pp container