| 12373 | ReporterRegistry::~ReporterRegistry() = default; |
| 12374 | |
| 12375 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 12376 | auto it = m_factories.find( name ); |
| 12377 | if( it == m_factories.end() ) |
| 12378 | return nullptr; |
| 12379 | return it->second->create( ReporterConfig( config ) ); |
| 12380 | } |
| 12381 | |
| 12382 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 12383 | m_factories.emplace(name, factory); |
no test coverage detected