| 10221 | ReporterRegistry::~ReporterRegistry() = default; |
| 10222 | |
| 10223 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 10224 | auto it = m_factories.find( name ); |
| 10225 | if( it == m_factories.end() ) |
| 10226 | return nullptr; |
| 10227 | return it->second->create( ReporterConfig( config ) ); |
| 10228 | } |
| 10229 | |
| 10230 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 10231 | m_factories.emplace(name, factory); |
no test coverage detected