| 8457 | ReporterRegistry::~ReporterRegistry() = default; |
| 8458 | |
| 8459 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 8460 | auto it = m_factories.find( name ); |
| 8461 | if( it == m_factories.end() ) |
| 8462 | return nullptr; |
| 8463 | return it->second->create( ReporterConfig( config ) ); |
| 8464 | } |
| 8465 | |
| 8466 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 8467 | m_factories.emplace(name, factory); |
no test coverage detected