SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AssocModeConfig.h
Go to the documentation of this file.
1
17
18
19#ifndef _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
20#define _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
21
22#include <boost/algorithm/string/split.hpp>
23
24#include "Configuration/Configuration.h"
25#include "Table/TableReader.h"
26
28
29namespace SourceXtractor {
30
32
33public:
34
46
52
53 enum class AssocCoordType {
56 };
57
69
70 explicit AssocModeConfig(long manager_id);
71 virtual ~AssocModeConfig() = default;
72
74 void initialize(const UserValues& args) override;
75
77 return m_assoc_mode;
78 }
79
80 double getAssocRadius() const {
81 return m_assoc_radius;
82 }
83
87
89 return m_columns_idx;
90 }
91
95
96private:
97 void readCommonConfig(const UserValues& args);
98 void readConfigFromParams(const UserValues& args);
99 void readConfigFromFile(const std::string& filename);
101
102 void checkConfig();
103 void printConfig();
104 void readCatalogs(const std::string& filename, const std::vector<int>& columns, AssocCoordType assoc_coord_type);
106
108 const std::vector<int>& copy_columns, bool use_world, std::shared_ptr<CoordinateSystem> coordinate_system=nullptr);
109
116
121
124
126};
127
128} /* namespace SourceXtractor */
129
130
131#endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_ */
std::map< std::string, boost::program_options::variable_value > UserValues
std::map< std::string, OptionDescriptionList > getProgramOptions() override
std::vector< CatalogEntry > readTable(const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > &copy_columns, bool use_world, std::shared_ptr< CoordinateSystem > coordinate_system=nullptr)
void readConfigFromFile(const std::string &filename)
void readConfigFromParams(const UserValues &args)
void initialize(const UserValues &args) override
const std::vector< std::vector< CatalogEntry > > & getCatalogs() const
const std::vector< int > & getColumnsIdx() const
std::map< std::string, unsigned int > parseConfigFile(const std::string &filename)
std::vector< std::string > getColumnsNames() const
void readCommonConfig(const UserValues &args)
std::vector< std::vector< CatalogEntry > > m_catalogs
virtual ~AssocModeConfig()=default
std::map< std::string, unsigned int > m_assoc_columns
void readCatalogs(const std::string &filename, const std::vector< int > &columns, AssocCoordType assoc_coord_type)
AssocCoordType getCoordinateType(const UserValues &args) const
std::vector< std::string > m_custom_column_names