SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sorter.h
Go to the documentation of this file.
1 
17 /*
18  * Sorter.h
19  *
20  * Created on: Sep 10, 2018
21  * Author: Alejandro Alvarez Ayllon
22  */
23 
24 #ifndef _SEMAIN_SORTER_H_
25 #define _SEMAIN_SORTER_H_
26 
27 #include "SEUtils/Observable.h"
29 
30 namespace SourceXtractor {
31 
32 class Sorter: public Observer<std::shared_ptr<SourceGroupInterface>>,
33  public Observable<std::shared_ptr<SourceGroupInterface>> {
34 public:
35 
36  Sorter();
37  virtual ~Sorter() = default;
38 
39  void handleMessage(const std::shared_ptr<SourceGroupInterface>& message) override;
40 
41 private:
44 };
45 
46 } // end SourceXtractor
47 
48 #endif // _SEMAIN_SORTER_H_
void handleMessage(const std::shared_ptr< SourceGroupInterface > &message) override
Definition: Sorter.cpp:30
STL class.
Implements the Observer pattern. Notifications will be made using a message of type T...
Definition: Observable.h:51
std::map< int, std::shared_ptr< SourceGroupInterface > > m_output_buffer
Definition: Sorter.h:42
virtual ~Sorter()=default
Observer interface to be used with Observable to implement the Observer pattern.
Definition: Observable.h:38