SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Output.h
Go to the documentation of this file.
1 
17 /*
18  * Output.h
19  *
20  * Created on: Jun 23, 2016
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_PIPELINE_OUTPUT_H_
25 #define _SEFRAMEWORK_PIPELINE_OUTPUT_H_
26 
30 
31 namespace SourceXtractor {
32 
33 class Output : public PipelineReceiver<SourceGroupInterface> {
34 
35 public:
36  virtual ~Output() = default;
37 
39  for (auto& source : *source_group) {
40  outputSource(source);
41  }
42  }
43 
44  void receiveProcessSignal(const ProcessSourcesEvent&) override {
45  // pass
46  }
47 
48  virtual void outputSource(const SourceInterface& source) = 0;
49 
51  virtual size_t flush() = 0;
52 
53  virtual void nextPart() = 0;
54 };
55 
56 }
57 
58 #endif /* _SEFRAMEWORK_PIPELINE_OUTPUT_H_ */
virtual size_t flush()=0
void receiveSource(std::unique_ptr< SourceGroupInterface > source_group) override
Definition: Output.h:38
virtual void outputSource(const SourceInterface &source)=0
Event received by SourceGrouping to request the processing of some of the Sources stored...
Definition: PipelineStage.h:33
virtual ~Output()=default
virtual void nextPart()=0
STL class.
The SourceInterface is an abstract &quot;source&quot; that has properties attached to it.
void receiveProcessSignal(const ProcessSourcesEvent &) override
Definition: Output.h:44