Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Context Class Reference
Inheritance diagram for Catch::Context:
Collaboration diagram for Catch::Context:

Public Member Functions

IResultCapturegetResultCapture () override
 
IRunnergetRunner () override
 
IConfigPtr const & getConfig () const override
 
 ~Context () override
 
void setResultCapture (IResultCapture *resultCapture) override
 
void setRunner (IRunner *runner) override
 
void setConfig (IConfigPtr const &config) override
 
- Public Member Functions inherited from Catch::IMutableContext
virtual ~IMutableContext ()
 
virtual ~IMutableContext ()
 
- Public Member Functions inherited from Catch::IContext
virtual ~IContext ()
 
virtual ~IContext ()
 

Friends

IMutableContextgetCurrentMutableContext ()
 

Detailed Description

Definition at line 13 of file catch_context.cpp.

Constructor & Destructor Documentation

◆ ~Context()

Catch::Context::~Context ( )
overridedefault

Member Function Documentation

◆ getConfig()

IConfigPtr const & Catch::Context::getConfig ( ) const
inlineoverridevirtual

Implements Catch::IContext.

Definition at line 23 of file catch_context.cpp.

23 {
24 return m_config;
25 }

◆ getResultCapture()

IResultCapture * Catch::Context::getResultCapture ( )
inlineoverridevirtual

Implements Catch::IContext.

Definition at line 16 of file catch_context.cpp.

16 {
17 return m_resultCapture;
18 }

◆ getRunner()

IRunner * Catch::Context::getRunner ( )
inlineoverridevirtual

Implements Catch::IContext.

Definition at line 19 of file catch_context.cpp.

19 {
20 return m_runner;
21 }

◆ setConfig()

void Catch::Context::setConfig ( IConfigPtr const & config)
inlineoverridevirtual

Implements Catch::IMutableContext.

Definition at line 36 of file catch_context.cpp.

36 {
37 m_config = config;
38 }

◆ setResultCapture()

void Catch::Context::setResultCapture ( IResultCapture * resultCapture)
inlineoverridevirtual

Implements Catch::IMutableContext.

Definition at line 30 of file catch_context.cpp.

30 {
31 m_resultCapture = resultCapture;
32 }

◆ setRunner()

void Catch::Context::setRunner ( IRunner * runner)
inlineoverridevirtual

Implements Catch::IMutableContext.

Definition at line 33 of file catch_context.cpp.

33 {
34 m_runner = runner;
35 }

Friends And Related Symbol Documentation

◆ getCurrentMutableContext

IMutableContext & getCurrentMutableContext ( )
friend

Definition at line 45 of file catch_context.h.

46 {
47 if( !IMutableContext::currentContext )
48 IMutableContext::createContext();
49 return *IMutableContext::currentContext;
50 }

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