Class ListenerRegistrar
Synopsis
#include <include/internal/catch_reporter_registrars.hpp>
template<typename T>
class ListenerRegistrar
Description
No description yet.
Methods
ListenerRegistrar |
Source
Lines 37-55 in include/internal/catch_reporter_registrars.hpp.
template<typename T>
class ListenerRegistrar {
class ListenerFactory : public IReporterFactory {
IStreamingReporterPtr create( ReporterConfig const& config ) const override {
return std::unique_ptr<T>( new T( config ) );
}
std::string getDescription() const override {
return std::string();
}
};
public:
ListenerRegistrar() {
getMutableRegistryHub().registerListener( std::make_shared<ListenerFactory>() );
}
};