OTest2
A C++ testing framework
include
otest2
testmarkout.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Ondrej Starek
3
*
4
* This file is part of OTest2.
5
*
6
* OTest2 is free software: you can redistribute it and/or modify it under
7
* the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation, either version 3 of the License,
9
* or (at your option) any later version.
10
*
11
* OTest2 is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14
* License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with OTest2. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef OTest2__INCLUDE_OTEST2_TESTMARKOUT_H_
21
#define OTest2__INCLUDE_OTEST2_TESTMARKOUT_H_
22
23
#include <cstdint>
24
#include <string>
25
26
namespace
OTest2
{
27
31
class
TestMarkOut
{
32
public
:
36
TestMarkOut
();
37
41
virtual
~TestMarkOut
();
42
43
/* -- avoid copying */
44
TestMarkOut
(
45
const
TestMarkOut
&) =
delete
;
46
TestMarkOut
&
operator =
(
47
const
TestMarkOut
&) =
delete
;
48
55
virtual
void
writeTypeMark
(
56
const
char
* typemark_) = 0;
57
63
virtual
void
writeInt
(
64
std::int64_t value_) = 0;
65
71
virtual
void
writeFloat
(
72
long
double
value_) = 0;
73
79
virtual
void
writeString
(
80
const
std::string& string_) = 0;
81
};
82
83
}
/* -- namespace OTest2 */
84
85
#endif
/* -- OTest2__INCLUDE_OTEST2_TESTMARKOUT_H_ */
OTest2::TestMarkOut::TestMarkOut
TestMarkOut()
Ctor.
Definition:
testmarkout.cpp:24
OTest2::TestMarkOut::writeFloat
virtual void writeFloat(long double value_)=0
Write 64-bit float.
OTest2::TestMarkOut
A generic interface of a serializer of test marks.
Definition:
testmarkout.h:31
OTest2::TestMarkOut::writeTypeMark
virtual void writeTypeMark(const char *typemark_)=0
Write type mark of currently stored testmark.
OTest2
Definition:
assertbean.h:25
OTest2::TestMarkOut::writeString
virtual void writeString(const std::string &string_)=0
Write text string.
OTest2::TestMarkOut::writeInt
virtual void writeInt(std::int64_t value_)=0
Write a 64 bit integer.
OTest2::TestMarkOut::operator=
TestMarkOut & operator=(const TestMarkOut &)=delete
OTest2::TestMarkOut::~TestMarkOut
virtual ~TestMarkOut()
Dtor.
Definition:
testmarkout.cpp:28
Generated by
1.8.17