SourceXtractorPlusPlus  0.17
SourceXtractor++, the next generation SExtractor
Measurement.h
Go to the documentation of this file.
1 
17 /*
18  * Measurement.h
19  *
20  * Created on: May 17, 2018
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_PIPELINE_MEASUREMENT_H_
25 #define _SEFRAMEWORK_PIPELINE_MEASUREMENT_H_
26 
27 
28 #include "SEUtils/Observable.h"
31 
32 namespace SourceXtractor {
33 
34 class Measurement :
35  public Observer<std::shared_ptr<SourceGroupInterface>>,
36  public Observable<std::shared_ptr<SourceGroupInterface>> {
37 public:
38 
39  virtual ~Measurement() = default;
40 
41  virtual void startThreads() = 0;
42  virtual void stopThreads() = 0;
43  virtual void synchronizeThreads() = 0;
44 };
45 
46 }
47 
48 
49 #endif /* _SEFRAMEWORK_PIPELINE_MEASUREMENT_H_ */
virtual void startThreads()=0
virtual ~Measurement()=default
virtual void stopThreads()=0
virtual void synchronizeThreads()=0
Implements the Observer pattern. Notifications will be made using a message of type T.
Definition: Observable.h:51
Observer interface to be used with Observable to implement the Observer pattern.
Definition: Observable.h:38