mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 02:45:40 +02:00
Streaming reporter interface is now used natively.
Legacy reporters are adapted by their factories.
This commit is contained in:
@@ -249,7 +249,7 @@ namespace Catch
|
||||
|
||||
struct IReporterFactory {
|
||||
virtual ~IReporterFactory();
|
||||
virtual IReporter* create( ReporterConfig const& config ) const = 0;
|
||||
virtual IStreamingReporter* create( ReporterConfig const& config ) const = 0;
|
||||
virtual std::string getDescription() const = 0;
|
||||
};
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace Catch
|
||||
typedef std::map<std::string, IReporterFactory*> FactoryMap;
|
||||
|
||||
virtual ~IReporterRegistry();
|
||||
virtual IReporter* create( std::string const& name, ReporterConfig const& config ) const = 0;
|
||||
virtual IStreamingReporter* create( std::string const& name, ReporterConfig const& config ) const = 0;
|
||||
virtual const FactoryMap& getFactories() const = 0;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user