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

#include <API.h>

Inheritance diagram for SpecsCpp::ISpecCodeBlock:
SpecsCpp::SpecCodeBlock

Public Types

using SpecCodeBlockAsyncDoneFn = IFunctionPointer< void()>
 
using SpecCodeBlockBodyFn = IFunctionPointer< void(ISpecComponent *, ISpec *, SpecCodeBlockAsyncDoneFn *)>
 

Public Member Functions

virtual ~ISpecCodeBlock ()=default
 
virtual bool is_async () const =0
 
virtual void mark_async (bool async=true)=0
 
virtual std::uint32_t get_timeout_ms () const =0
 
virtual void set_timeout_ms (std::uint32_t timeout_ms)=0
 
virtual SpecCodeBlockBodyFnbody () const =0
 
virtual void set_body (SpecCodeBlockBodyFn *)=0
 
virtual void run (ISpecComponent *, ISpecGroup *, ISpec *, ISpecRunResultCallbackFn *)=0
 

Detailed Description

Definition at line 200 of file API.h.

Member Typedef Documentation

◆ SpecCodeBlockAsyncDoneFn

using SpecsCpp::ISpecCodeBlock::SpecCodeBlockAsyncDoneFn = IFunctionPointer<void()>

Definition at line 201 of file API.h.

◆ SpecCodeBlockBodyFn

Definition at line 202 of file API.h.

Constructor & Destructor Documentation

◆ ~ISpecCodeBlock()

virtual SpecsCpp::ISpecCodeBlock::~ISpecCodeBlock ( )
virtualdefault

Member Function Documentation

◆ body()

virtual SpecCodeBlockBodyFn * SpecsCpp::ISpecCodeBlock::body ( ) const
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.

◆ get_timeout_ms()

virtual std::uint32_t SpecsCpp::ISpecCodeBlock::get_timeout_ms ( ) const
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.

◆ is_async()

virtual bool SpecsCpp::ISpecCodeBlock::is_async ( ) const
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.

◆ mark_async()

virtual void SpecsCpp::ISpecCodeBlock::mark_async ( bool  async = true)
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.

◆ run()

virtual void SpecsCpp::ISpecCodeBlock::run ( ISpecComponent ,
ISpecGroup ,
ISpec ,
ISpecRunResultCallbackFn  
)
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.

◆ set_body()

virtual void SpecsCpp::ISpecCodeBlock::set_body ( SpecCodeBlockBodyFn )
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.

◆ set_timeout_ms()

virtual void SpecsCpp::ISpecCodeBlock::set_timeout_ms ( std::uint32_t  timeout_ms)
pure virtual

Implemented in SpecsCpp::SpecCodeBlock.


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