| 9963 | ReporterRegistry::~ReporterRegistry() = default; |
| 9964 | |
| 9965 | IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const { |
| 9966 | auto it = m_factories.find( name ); |
| 9967 | if( it == m_factories.end() ) |
| 9968 | return nullptr; |
| 9969 | return it->second->create( ReporterConfig( config ) ); |
| 9970 | } |
| 9971 | |
| 9972 | void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) { |
| 9973 | m_factories.emplace(name, factory); |
no test coverage detected