SourceXtractorPlusPlus  0.11
Please provide a description of the project.
ExternalFlagTask.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_TASK_EXTERNALFLAGTASK_H
24 #define _SEIMPLEMENTATION_TASK_EXTERNALFLAGTASK_H
25 
30 
31 namespace SourceXtractor {
32 
33 namespace ExternalFlagCombineTypes {
34 struct Or;
35 struct And;
36 struct Min;
37 struct Max;
38 struct Most;
39 }
40 
46 template <typename Combine>
47 class ExternalFlagTask : public SourceTask {
48 
49 public:
50 
51  virtual ~ExternalFlagTask();
52 
53  ExternalFlagTask(std::shared_ptr<FlagImage> flag_image, unsigned int flag_instance);
54 
55  void computeProperties(SourceInterface& source) const override;
56 
57 private:
58 
60  unsigned int m_flag_instance;
61 
62 };
63 
66 
69 
72 
75 
78 
79 } /* namespace SourceXtractor */
80 
81 
82 #endif
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
A Task that acts on a Source to compute one or more properties.
Definition: SourceTask.h:36
ExternalFlagTask(std::shared_ptr< FlagImage > flag_image, unsigned int flag_instance)
The SourceInterface is an abstract "source" that has properties attached to it.
Task to produce the ExternalFlag Property.
std::shared_ptr< FlagImage > m_flag_image