| 11988 | ReporterRegistry::~ReporterRegistry() = default; |
| 11989 | |
| 11990 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 11991 | auto it = m_factories.find( name ); |
| 11992 | if( it == m_factories.end() ) |
| 11993 | return nullptr; |
| 11994 | return it->second->create( ReporterConfig( config ) ); |
| 11995 | } |
| 11996 | |
| 11997 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 11998 | m_factories.emplace(name, factory); |
no test coverage detected