SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
BlendedFlagTask.h
Go to the documentation of this file.
1
17/*
18 * BlendedFlagTask.h
19 *
20 * Created on: Oct 29, 2018
21 * Author: Alejandro Alvarez Ayllon
22 */
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_BLENDEDFLAGTASK_H_
25#define _SEIMPLEMENTATION_PLUGIN_BLENDEDFLAGTASK_H_
26
27
30#include "BlendedFlag.h"
31
32namespace SourceXtractor {
33
35public:
36 virtual ~BlendedFlagTask() = default;
37
38 virtual void computeProperties(SourceInterface &source) const {
39 const auto& detection_src_id = source.getProperty<SourceId>();
40 source.setProperty<BlendedFlag>(detection_src_id.getDetectionId() != detection_src_id.getSourceId());
41 };
42};
43
44} // end SourceXtractor
45
46#endif // _SEIMPLEMENTATION_PLUGIN_BLENDEDFLAGTASK_H_
virtual ~BlendedFlagTask()=default
virtual void computeProperties(SourceInterface &source) const
Computes one or more properties for the Source.
The SourceInterface is an abstract "source" that has properties attached to it.
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
A Task that acts on a Source to compute one or more properties.
Definition SourceTask.h:36