SourceXtractorPlusPlus
0.8
Please provide a description of the project.
|
#include <OutputRegistry.h>
Classes | |
struct | ColInfo |
class | ColumnFromSource |
Public Types | |
template<typename PropertyType , typename OutType > | |
using | ColumnConverter = std::function< OutType(const PropertyType &)> |
using | SourceToRowConverter = std::function< Euclid::Table::Row(const SourceInterface &)> |
Public Member Functions | |
template<typename PropertyType , typename OutType > | |
void | registerColumnConverter (std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="") |
template<typename PropertyType > | |
void | registerPropertyInstances (const std::vector< std::pair< std::string, unsigned int >> &instance_names) |
template<typename PropertyType > | |
void | registerPropertyInstances (const std::string ¤t_name, const std::vector< std::pair< std::string, unsigned int >> &instance_names) |
template<typename PropertyType > | |
void | enableOutput (std::string alias_name) |
std::set< std::string > | getOutputPropertyNames () |
SourceToRowConverter | getSourceToRowConverter (const std::vector< std::string > &enabled_optional) |
void | printPropertyColumnMap (const std::vector< std::string > &properties={}) |
Private Attributes | |
std::map< std::type_index, std::vector< std::string > > | m_property_to_names_map {} |
std::map< std::string, std::pair< std::type_index, ColumnFromSource > > | m_name_to_converter_map {} |
std::map< std::string, ColInfo > | m_name_to_col_info_map {} |
std::multimap< std::string, std::type_index > | m_output_properties {} |
Definition at line 36 of file OutputRegistry.h.
using SourceXtractor::OutputRegistry::ColumnConverter = std::function<OutType(const PropertyType&)> |
Definition at line 41 of file OutputRegistry.h.
using SourceXtractor::OutputRegistry::SourceToRowConverter = std::function<Euclid::Table::Row(const SourceInterface&)> |
Definition at line 43 of file OutputRegistry.h.
|
inline |
Definition at line 128 of file OutputRegistry.h.
References m_output_properties, and m_property_to_names_map.
Referenced by SourceXtractor::CoreThresholdPartitionPlugin::registerPlugin(), SourceXtractor::FlexibleModelFittingPlugin::registerPlugin(), SourceXtractor::WorldCentroidPlugin::registerPlugin(), SourceXtractor::MoffatModelFittingPlugin::registerPlugin(), SourceXtractor::PeakValuePlugin::registerPlugin(), SourceXtractor::ShapeParametersPlugin::registerPlugin(), SourceXtractor::KronRadiusPlugin::registerPlugin(), SourceXtractor::ExternalFlagPlugin::registerPlugin(), SourceXtractor::IsophotalFluxPlugin::registerPlugin(), SourceXtractor::PixelCentroidPlugin::registerPlugin(), SourceXtractor::AperturePhotometryPlugin::registerPlugin(), SourceXtractor::GroupInfoPlugin::registerPlugin(), SourceXtractor::DetectionFrameGroupStampPlugin::registerPlugin(), SourceXtractor::AutoPhotometryPlugin::registerPlugin(), SourceXtractor::PixelBoundariesPlugin::registerPlugin(), SourceXtractor::NDetectedPixelsPlugin::registerPlugin(), SourceXtractor::SourceFlagsPlugin::registerPlugin(), and SourceXtractor::SourceIDsPlugin::registerPlugin().
|
inline |
Definition at line 136 of file OutputRegistry.h.
References std::set< K >::emplace(), and m_output_properties.
auto SourceXtractor::OutputRegistry::getSourceToRowConverter | ( | const std::vector< std::string > & | enabled_optional | ) |
Definition at line 36 of file OutputRegistry.cpp.
References std::vector< T >::at(), std::find(), and std::move().
void SourceXtractor::OutputRegistry::printPropertyColumnMap | ( | const std::vector< std::string > & | properties = {} | ) |
Definition at line 67 of file OutputRegistry.cpp.
References std::vector< T >::begin(), std::vector< T >::empty(), std::vector< T >::end(), and std::string::find().
|
inline |
Definition at line 46 of file OutputRegistry.h.
References m_name_to_col_info_map, m_name_to_converter_map, and m_property_to_names_map.
Referenced by SourceXtractor::CoreThresholdPartitionPlugin::registerPlugin(), SourceXtractor::FlexibleModelFittingPlugin::registerPlugin(), SourceXtractor::WorldCentroidPlugin::registerPlugin(), SourceXtractor::MoffatModelFittingPlugin::registerPlugin(), SourceXtractor::PeakValuePlugin::registerPlugin(), SourceXtractor::AutoPhotometryPlugin::registerPlugin(), SourceXtractor::DetectionFrameGroupStampPlugin::registerPlugin(), SourceXtractor::ShapeParametersPlugin::registerPlugin(), SourceXtractor::ExternalFlagPlugin::registerPlugin(), SourceXtractor::PixelBoundariesPlugin::registerPlugin(), SourceXtractor::AperturePhotometryPlugin::registerPlugin(), SourceXtractor::GroupInfoPlugin::registerPlugin(), SourceXtractor::IsophotalFluxPlugin::registerPlugin(), SourceXtractor::PixelCentroidPlugin::registerPlugin(), SourceXtractor::KronRadiusPlugin::registerPlugin(), SourceXtractor::NDetectedPixelsPlugin::registerPlugin(), SourceXtractor::SourceFlagsPlugin::registerPlugin(), SourceXtractor::SourceIDsPlugin::registerPlugin(), and SourceXtractor::FlexibleModelFittingTaskFactory::registerPropertyInstances().
|
inline |
When there are multiple instances of a given property, generate one column output with the given suffix for each instance
PropertyType |
instance_names |
Definition at line 63 of file OutputRegistry.h.
References m_name_to_col_info_map, m_name_to_converter_map, and m_property_to_names_map.
Referenced by SourceXtractor::AutoPhotometryTaskFactory::registerPropertyInstances(), SourceXtractor::ExternalFlagTaskFactory::registerPropertyInstances(), and SourceXtractor::AperturePhotometryTaskFactory::registerPropertyInstances().
|
inline |
When there are multiple instances of a given property, generate one column output with the given name for each instance replacing an existing registered name
PropertyType |
current_name | |
instance_names |
Definition at line 99 of file OutputRegistry.h.
References std::back_inserter(), std::copy(), std::find(), m_name_to_col_info_map, m_name_to_converter_map, and m_property_to_names_map.
|
private |
Definition at line 173 of file OutputRegistry.h.
Referenced by registerColumnConverter(), and registerPropertyInstances().
|
private |
Definition at line 172 of file OutputRegistry.h.
Referenced by registerColumnConverter(), and registerPropertyInstances().
|
private |
Definition at line 174 of file OutputRegistry.h.
Referenced by enableOutput(), and getOutputPropertyNames().
|
private |
Definition at line 171 of file OutputRegistry.h.
Referenced by enableOutput(), registerColumnConverter(), and registerPropertyInstances().