Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecHasCodeBlock.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Specs/API.h
>
4
5
#include <memory>
6
7
#include "
SpecCodeBlock.h
"
8
9
namespace
SpecsCpp
{
10
11
class
SpecHasCodeBlock
:
public
virtual
ISpecHasCodeBlock
{
12
std::unique_ptr<SpecCodeBlock> _codeBlock;
13
14
public
:
15
SpecHasCodeBlock
(std::unique_ptr<SpecCodeBlock> codeBlock)
16
: _codeBlock(std::move(codeBlock)) {}
17
18
ISpecCodeBlock
*
code_block
()
const override
{
return
_codeBlock.get(); }
19
};
20
}
API.h
SpecCodeBlock.h
SpecsCpp::SpecHasCodeBlock
Definition
SpecHasCodeBlock.h:11
SpecsCpp::SpecHasCodeBlock::SpecHasCodeBlock
SpecHasCodeBlock(std::unique_ptr< SpecCodeBlock > codeBlock)
Definition
SpecHasCodeBlock.h:15
SpecsCpp::SpecHasCodeBlock::code_block
ISpecCodeBlock * code_block() const override
Definition
SpecHasCodeBlock.h:18
SpecsCpp
Definition
API.h:3
SpecsCpp::ISpecCodeBlock
Definition
API.h:200
SpecsCpp::ISpecHasCodeBlock
Definition
API.h:294
Specs.Implementations
include
Specs
SpecHasCodeBlock.h
<3 Mrowr Purr