OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::TestMarkPrinter Class Reference

Printer of testmarks. More...

#include <testmarkprinter.h>

Classes

struct  Impl
 

Public Member Functions

 TestMarkPrinter (const std::vector< TestMark::LinearizedRecord > *array_, int &index_)
 Ctor. More...
 
 ~TestMarkPrinter ()
 Dtor. More...
 
 TestMarkPrinter (const TestMarkPrinter &)=delete
 
TestMarkPrinteroperator= (const TestMarkPrinter &)=delete
 
bool printLine (TestMarkFormatter &formatter_)
 Print current line into a stream. More...
 
bool printDeleted (TestMarkFormatter &formatter_)
 Print deleted line. More...
 
bool printAdded (TestMarkFormatter &formatter_)
 Print added line. More...
 
bool skipLine (TestMarkFormatter &os_)
 Skip current line. More...
 

Detailed Description

Printer of testmarks.

Definition at line 35 of file testmarkprinter.h.

Constructor & Destructor Documentation

◆ TestMarkPrinter() [1/2]

OTest2::TestMarkPrinter::TestMarkPrinter ( const std::vector< TestMark::LinearizedRecord > *  array_,
int &  index_ 
)
explicit

Ctor.

Parameters
[in]array_An injected testmark array. The ownership is not taken.
[out]index_A variable keeping current index in the array. Client code can observe current index. Client code must not change the value!

Definition at line 131 of file testmarkprinter.cpp.

◆ ~TestMarkPrinter()

OTest2::TestMarkPrinter::~TestMarkPrinter ( )

Dtor.

Definition at line 138 of file testmarkprinter.cpp.

◆ TestMarkPrinter() [2/2]

OTest2::TestMarkPrinter::TestMarkPrinter ( const TestMarkPrinter )
delete

Member Function Documentation

◆ operator=()

TestMarkPrinter& OTest2::TestMarkPrinter::operator= ( const TestMarkPrinter )
delete

◆ printAdded()

bool OTest2::TestMarkPrinter::printAdded ( TestMarkFormatter formatter_)

Print added line.

Parameters
formatter_A testmark formatter
Returns
True if there are next items in the array

Definition at line 154 of file testmarkprinter.cpp.

◆ printDeleted()

bool OTest2::TestMarkPrinter::printDeleted ( TestMarkFormatter formatter_)

Print deleted line.

Parameters
formatter_A testmark formatter
Returns
True if there are next items in the array

Definition at line 148 of file testmarkprinter.cpp.

◆ printLine()

bool OTest2::TestMarkPrinter::printLine ( TestMarkFormatter formatter_)

Print current line into a stream.

Parameters
formatter_A testmark formatter
Returns
True if there are next items in the array

Definition at line 142 of file testmarkprinter.cpp.

◆ skipLine()

bool OTest2::TestMarkPrinter::skipLine ( TestMarkFormatter os_)

Skip current line.

Parameters
os_The output stream. Although the line is skipped some closed nodes may be printed.
Returns
True if there are next items in the array

Definition at line 160 of file testmarkprinter.cpp.


The documentation for this class was generated from the following files: