| 12534 | ReporterRegistry::~ReporterRegistry() = default; |
| 12535 | |
| 12536 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 12537 | auto it = m_factories.find( name ); |
| 12538 | if( it == m_factories.end() ) |
| 12539 | return nullptr; |
| 12540 | return it->second->create( ReporterConfig( config ) ); |
| 12541 | } |
| 12542 | |
| 12543 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 12544 | m_factories.emplace(name, factory); |
no test coverage detected