| 12474 | ReporterRegistry::~ReporterRegistry() = default; |
| 12475 | |
| 12476 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 12477 | auto it = m_factories.find( name ); |
| 12478 | if( it == m_factories.end() ) |
| 12479 | return nullptr; |
| 12480 | return it->second->create( ReporterConfig( config ) ); |
| 12481 | } |
| 12482 | |
| 12483 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 12484 | m_factories.emplace(name, factory); |
no test coverage detected