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