SourceXtractorPlusPlus  0.11
Please provide a description of the project.
MeasurementFrameTask.h
Go to the documentation of this file.
1 
17 /*
18  * MeasurementFrameTask.h
19  *
20  * Created on: Nov 3, 2016
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAME_MEASUREMENTFRAMETASK_H_
25 #define _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAME_MEASUREMENTFRAMETASK_H_
26 
28 
29 namespace SourceXtractor {
30 
32 public:
33 
37  virtual ~MeasurementFrameTask() = default;
38 
39  MeasurementFrameTask(unsigned int instance, std::shared_ptr<MeasurementImageFrame> measurement_frame) :
40  m_instance(instance),
41  m_measurement_frame(measurement_frame) {}
42 
43  virtual void computeProperties(SourceInterface& source) const override;
44 
45 private:
46  unsigned int m_instance;
48 };
49 
51 public:
52 
56  virtual ~DefaultMeasurementFrameTask() = default;
57 
58  DefaultMeasurementFrameTask(unsigned int instance) : m_instance(instance) {}
59 
60  virtual void computeProperties(SourceInterface& source) const override;
61 
62 private:
63  unsigned int m_instance;
64 };
65 }
66 
67 #endif
virtual ~DefaultMeasurementFrameTask()=default
Destructor.
A Task that acts on a Source to compute one or more properties.
Definition: SourceTask.h:36
std::shared_ptr< MeasurementImageFrame > m_measurement_frame
MeasurementFrameTask(unsigned int instance, std::shared_ptr< MeasurementImageFrame > measurement_frame)
virtual void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
virtual ~MeasurementFrameTask()=default
Destructor.
The SourceInterface is an abstract "source" that has properties attached to it.
virtual void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.