Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecDocumented.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Specs/API.h
>
4
5
#include <string>
6
#include <string_view>
7
8
namespace
SpecsCpp
{
9
10
class
SpecDocumented
:
public
virtual
ISpecDocumented
{
11
std::string _description;
12
13
public
:
14
SpecDocumented
(std::string_view
description
) : _description(
description
) {}
15
16
const
char
*
description
()
const override
{
return
_description.c_str(); }
17
};
18
}
API.h
SpecsCpp::SpecDocumented
Definition
SpecDocumented.h:10
SpecsCpp::SpecDocumented::SpecDocumented
SpecDocumented(std::string_view description)
Definition
SpecDocumented.h:14
SpecsCpp::SpecDocumented::description
const char * description() const override
Definition
SpecDocumented.h:16
SpecsCpp
Definition
API.h:3
SpecsCpp::ISpecDocumented
Definition
API.h:307
Specs.Implementations
include
Specs
SpecDocumented.h
<3 Mrowr Purr