39 EventLoop(
unsigned int firstEvent = 0,
unsigned int nEvents = 0);
85 bool SetAlgorithms(std::unique_ptr<AlgoSequence> &&algorithms);
105 bool CacheEventObject(
const std::string &objName,
const std::string &storeName);
115 bool CleanEventCache(
const std::string &objName,
const std::string &storeName);
132 bool Initialize(
unsigned int passNumber,
unsigned int iterNumber);
216 using CachedObjs = std::list<std::pair<std::string, std::string>>;
bool SetPersistenceServiceManager(observer_ptr< PersistenceServiceManager > psManager)
Set the persistence service manager.
Definition: EventLoop.cpp:59
bool CleanEventCache(const std::string &objName, const std::string &storeName)
Cleans the cache for the given object.
Definition: EventLoop.cpp:92
AlgoSequence & GetAlgorithms()
Get the algorithm sequence in the loop.
Definition: EventLoop.h:91
bool SetDataProviderManager(observer_ptr< DataProviderManager > dpManager)
Set the data provider manager.
Definition: EventLoop.cpp:32
unsigned int _nProcessed
Definition: EventLoop.h:225
observer_ptr< DataStoreManager > _dsManager
Definition: EventLoop.h:212
bool Run()
The actual event loop.
Definition: EventLoop.cpp:243
A smart pointer not owning the wrapped object.
Definition: ObserverPtr.h:28
IterateRequest Iterate()
Signals whether the event loop has to be reiterated or not.
Definition: EventLoop.cpp:380
CachedObjs _cachedObjs
Definition: EventLoop.h:217
bool SetAlgorithms(std::unique_ptr< AlgoSequence > &&algorithms)
Replaces the loop algorithm sequence with the given one.
Definition: EventLoop.cpp:77
EventLoopProxy _loopProxy
Definition: EventLoop.h:209
observer_ptr< PersistenceServiceManager > _psManager
Definition: EventLoop.h:214
unsigned int _nEvents
Definition: EventLoop.h:224
Algorithm made by multiple basic algorithms.
Definition: AlgoSequence.h:37
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
bool CacheEventObject(const std::string &objName, const std::string &storeName)
Caches the given object.
Definition: EventLoop.cpp:85
CachedObjs _cachesToBeCleaned
Definition: EventLoop.h:218
bool _checkDataAvailability
Definition: EventLoop.h:227
bool Initialize(unsigned int passNumber, unsigned int iterNumber)
Initializes the loop.
Definition: EventLoop.cpp:99
bool Finalize()
Finalizes the loop.
Definition: EventLoop.cpp:349
bool SetDataStoreManager(observer_ptr< DataStoreManager > dsManager)
Set the data store manager.
Definition: EventLoop.cpp:41
unsigned int GetNEvents()
Returns the number of events to be processed.
Definition: EventLoop.cpp:345
EventLoop(unsigned int firstEvent=0, unsigned int nEvents=0)
Constructor.
Definition: EventLoop.cpp:23
int _printModulo
Definition: EventLoop.h:226
A proxy class for EventLoop objects.
Definition: EventLoopProxy.h:24
std::vector< std::string > _disabledProviders
Definition: EventLoop.h:228
unsigned int _currIter
Definition: EventLoop.h:221
unsigned int GetFirstEvent()
Returns the first event to be processed.
Definition: EventLoop.cpp:343
observer_ptr< DataProviderManager > _dpManager
Definition: EventLoop.h:211
unsigned int _passNumber
Definition: EventLoop.h:220
bool AddAlgorithm(std::unique_ptr< Algorithm > algo)
Add an algorithm to the loop.
Definition: EventLoop.cpp:67
observer_ptr< EventDataCacheManager > _ecManager
Definition: EventLoop.h:213
std::list< std::pair< std::string, std::string > > CachedObjs
Definition: EventLoop.h:216
bool SetEventDataCacheManager(observer_ptr< EventDataCacheManager > ecManager)
Set the event data cache manager.
Definition: EventLoop.cpp:50
std::unique_ptr< AlgoSequence > _algorithms
Definition: EventLoop.h:215
Interface for a configurable class.
Definition: Configurable.h:25
Interface for event loop classes.
Definition: EventLoop.h:32
unsigned int GetNProcessed()
Returns the number of processed events.
Definition: EventLoop.cpp:347
IterateRequest
Definition: EventLoop.h:185
unsigned int _currentEvent
Definition: EventLoop.h:222
unsigned int _firstEvent
Definition: EventLoop.h:223