SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AssocModeConfig.h
Go to the documentation of this file.
1
19#ifndef _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
20#define _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
21
22#include <boost/algorithm/string/split.hpp>
23
25#include "Table/TableReader.h"
26
28
29namespace SourceXtractor {
30
32
33public:
34
35 enum class AssocMode {
36 UNKNOWN,
37 FIRST,
38 NEAREST,
39 MIN,
40 MAX,
41 MEAN,
43 SUM,
45 };
46
47 enum class AssocFilter {
48 ALL,
49 MATCHED,
51 };
52
53 struct CatalogEntry {
55 double weight;
57 };
58
59
60 explicit AssocModeConfig(long manager_id);
61 virtual ~AssocModeConfig() = default;
62
64 void initialize(const UserValues& args) override;
65
67 return m_assoc_mode;
68 }
69
70 double getAssocRadius() const {
71 return m_assoc_radius;
72 }
73
75 return m_catalogs;
76 }
77
79 return m_columns_idx;
80 }
81
82private:
83 void readConfig(const UserValues& args);
84 void readCatalogs(const UserValues& args);
85
87 const std::vector<int>& copy_columns, std::shared_ptr<CoordinateSystem> coordinate_system);
88
91
94};
95
96} /* namespace SourceXtractor */
97
98
99#endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_ */
std::map< std::string, boost::program_options::variable_value > UserValues
std::map< std::string, OptionDescriptionList > getProgramOptions() override
void readConfig(const UserValues &args)
void initialize(const UserValues &args) override
const std::vector< std::vector< CatalogEntry > > & getCatalogs() const
void readCatalogs(const UserValues &args)
const std::vector< int > & getColumnsIdx() const
std::vector< CatalogEntry > readTable(const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > &copy_columns, std::shared_ptr< CoordinateSystem > coordinate_system)
std::vector< std::vector< CatalogEntry > > m_catalogs
virtual ~AssocModeConfig()=default