9#ifndef TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED
10#define TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED
22 return std::unique_ptr<T>(
new T(
config ) );
25 std::string getDescription()
const override {
26 return T::getDescription();
43 return std::unique_ptr<T>(
new T(
config ) );
45 std::string getDescription()
const override {
58#if !defined(CATCH_CONFIG_DISABLE)
60#define CATCH_REGISTER_REPORTER( name, reporterType ) \
61 CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
62 namespace{ Catch::ReporterRegistrar<reporterType> catch_internal_RegistrarFor##reporterType( name ); } \
63 CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS
65#define CATCH_REGISTER_LISTENER( listenerType ) \
66 CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
67 namespace{ Catch::ListenerRegistrar<listenerType> catch_internal_RegistrarFor##listenerType; } \
68 CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS
71#define CATCH_REGISTER_REPORTER(name, reporterType)
72#define CATCH_REGISTER_LISTENER(listenerType)
ReporterRegistrar(std::string const &name)
std::unique_ptr< IStreamingReporter > IStreamingReporterPtr
IMutableRegistryHub & getMutableRegistryHub()
#define T(meth, val, expected)
virtual void registerReporter(std::string const &name, IReporterFactoryPtr const &factory)=0
virtual void registerListener(IReporterFactoryPtr const &factory)=0