SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourcePsfTask.h
Go to the documentation of this file.
1
18#ifndef _SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
19#define _SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
20
22#include "SEFramework/Psf/Psf.h"
23
24namespace SourceXtractor {
25
27public:
28 virtual ~SourcePsfTask() = default;
29
30 SourcePsfTask(unsigned instance, const std::shared_ptr<Psf> &vpsf);
31
32 void computeProperties(SourceInterface& source) const override;
33
34 typedef std::function<double(SourceXtractor::SourceInterface &group, unsigned instance)> ValueGetter;
36
37private:
38 unsigned m_instance;
40};
41
42} // end SourceXtractor
43
44#endif //_SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
The SourceInterface is an abstract "source" that has properties attached to it.
std::function< double(SourceXtractor::SourceInterface &group, unsigned instance)> ValueGetter
virtual ~SourcePsfTask()=default
static std::map< std::string, ValueGetter > component_value_getters
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
std::shared_ptr< Psf > m_vpsf
A Task that acts on a Source to compute one or more properties.
Definition SourceTask.h:36