Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecsCpp::ISpecReporterCollection Struct Referenceabstract

#include <API.h>

Inheritance diagram for SpecsCpp::ISpecReporterCollection:
SpecsCpp::SpecReporterCollection

Public Types

using ForEachReporterFn = IFunctionPointer< void(const char *, ISpecReporter *)>
 

Public Member Functions

virtual ~ISpecReporterCollection ()=default
 
virtual void add (const char *, ISpecReporter *)=0
 
virtual bool has (const char *name) const =0
 
virtual ISpecReporterget (const char *name) const =0
 
virtual void foreach_reporter (ForEachReporterFn *) const =0
 
void foreach (std::function< void(const char *, ISpecReporter *)> fn) const
 
virtual void report_start ()=0
 
virtual void report_test_begin (ISpecGroup *, ISpec *)=0
 
virtual void report_setup (ISpecRunResult *)=0
 
virtual void report_test (ISpecRunResult *)=0
 
virtual void report_teardown (ISpecRunResult *)=0
 
virtual void report_test_result (ISpecRunResult *)=0
 
virtual void report_suite_result (ISpecSuiteRunResult *)=0
 

Detailed Description

Definition at line 426 of file API.h.

Member Typedef Documentation

◆ ForEachReporterFn

using SpecsCpp::ISpecReporterCollection::ForEachReporterFn = IFunctionPointer<void(const char*, ISpecReporter*)>

Definition at line 427 of file API.h.

Constructor & Destructor Documentation

◆ ~ISpecReporterCollection()

virtual SpecsCpp::ISpecReporterCollection::~ISpecReporterCollection ( )
virtualdefault

Member Function Documentation

◆ add()

virtual void SpecsCpp::ISpecReporterCollection::add ( const char *  ,
ISpecReporter  
)
pure virtual

◆ foreach()

void SpecsCpp::ISpecReporterCollection::foreach ( std::function< void(const char *, ISpecReporter *)>  fn) const
inline

Definition at line 435 of file API.h.

435 {
436 auto callback = unique_function_pointer(fn);
437 this->foreach_reporter(callback.get());
438 }
virtual void foreach_reporter(ForEachReporterFn *) const =0

◆ foreach_reporter()

virtual void SpecsCpp::ISpecReporterCollection::foreach_reporter ( ForEachReporterFn ) const
pure virtual

Implemented in SpecsCpp::SpecReporterCollection.

Referenced by foreach().

◆ get()

virtual ISpecReporter * SpecsCpp::ISpecReporterCollection::get ( const char *  name) const
pure virtual

◆ has()

virtual bool SpecsCpp::ISpecReporterCollection::has ( const char *  name) const
pure virtual

◆ report_setup()

virtual void SpecsCpp::ISpecReporterCollection::report_setup ( ISpecRunResult )
pure virtual

◆ report_start()

virtual void SpecsCpp::ISpecReporterCollection::report_start ( )
pure virtual

◆ report_suite_result()

virtual void SpecsCpp::ISpecReporterCollection::report_suite_result ( ISpecSuiteRunResult )
pure virtual

◆ report_teardown()

virtual void SpecsCpp::ISpecReporterCollection::report_teardown ( ISpecRunResult )
pure virtual

◆ report_test()

virtual void SpecsCpp::ISpecReporterCollection::report_test ( ISpecRunResult )
pure virtual

◆ report_test_begin()

virtual void SpecsCpp::ISpecReporterCollection::report_test_begin ( ISpecGroup ,
ISpec  
)
pure virtual

◆ report_test_result()

virtual void SpecsCpp::ISpecReporterCollection::report_test_result ( ISpecRunResult )
pure virtual

The documentation for this struct was generated from the following file: