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
9namespace 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}
SpecHasCodeBlock(std::unique_ptr< SpecCodeBlock > codeBlock)
ISpecCodeBlock * code_block() const override
Definition API.h:3