Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_reporter_registry.h
Go to the documentation of this file.
1/*
2 * Created by Phil on 29/10/2010.
3 * Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
4 *
5 * Distributed under the Boost Software License, Version 1.0. (See accompanying
6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 */
8#ifndef TWOBLUECUBES_CATCH_REPORTER_REGISTRY_H_INCLUDED
9#define TWOBLUECUBES_CATCH_REPORTER_REGISTRY_H_INCLUDED
10
12
13#include <map>
14
15namespace Catch {
16
18
19 public:
20
22
23 IStreamingReporterPtr create( std::string const& name, IConfigPtr const& config ) const override;
24
25 void registerReporter( std::string const& name, IReporterFactoryPtr const& factory );
26 void registerListener( IReporterFactoryPtr const& factory );
27
28 FactoryMap const& getFactories() const override;
29 Listeners const& getListeners() const override;
30
31 private:
32 FactoryMap m_factories;
33 Listeners m_listeners;
34 };
35}
36
37#endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRY_H_INCLUDED
std::string name
Listeners const & getListeners() const override
~ReporterRegistry() override
void registerListener(IReporterFactoryPtr const &factory)
void registerReporter(std::string const &name, IReporterFactoryPtr const &factory)
IStreamingReporterPtr create(std::string const &name, IConfigPtr const &config) const override
FactoryMap const & getFactories() const override
std::unique_ptr< IStreamingReporter > IStreamingReporterPtr
std::shared_ptr< IReporterFactory > IReporterFactoryPtr
std::shared_ptr< IConfig const > IConfigPtr
std::map< std::string, IReporterFactoryPtr > FactoryMap
std::vector< IReporterFactoryPtr > Listeners