MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / create

Method create

unittests/catch.hpp:8459–8464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8457 ReporterRegistry::~ReporterRegistry() = default;
8458
8459 IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const {
8460 auto it = m_factories.find( name );
8461 if( it == m_factories.end() )
8462 return nullptr;
8463 return it->second->create( ReporterConfig( config ) );
8464 }
8465
8466 void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) {
8467 m_factories.emplace(name, factory);

Callers 2

createReporterFunction · 0.45
addListenersFunction · 0.45

Calls 3

ReporterConfigClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected