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

Implementation of the testmark formatter based on an IO stream. More...

#include <testmarkformatterios.h>

Inheritance diagram for OTest2::TestMarkFormatterIOS:
Inheritance graph
[legend]
Collaboration diagram for OTest2::TestMarkFormatterIOS:
Collaboration graph
[legend]

Public Member Functions

 TestMarkFormatterIOS (const TestMarkFormatterIOS &)=delete
 
TestMarkFormatterIOSoperator= (const TestMarkFormatterIOS &)=delete
 
 TestMarkFormatterIOS (std::ostream *os_, const std::string &prefix_)
 Ctor. More...
 
virtual ~TestMarkFormatterIOS ()
 Dtor. More...
 
virtual void openMark (const std::string &label_, const TestMark *mark_, int indent_) override
 Print opening of a testmark. More...
 
virtual void closeMark (const std::string &label_, const TestMark *mark_, int indent_) override
 Print closing of a testmark. More...
 
virtual void openDeleted (const std::string &label_, const TestMark *mark_, int indent_) override
 Print opening of a deleted testmark. More...
 
virtual void closeDeleted (const std::string &label_, const TestMark *mark_, int indent_) override
 Print closing of a deleted testmark. More...
 
virtual void openAdded (const std::string &label_, const TestMark *mark_, int indent_) override
 Print opening of an added testmark. More...
 
virtual void closeAdded (const std::string &label_, const TestMark *mark_, int indent_) override
 Print closing of an added testmark. More...
 
virtual void printSeparator () override
 Print separator (used for unchanged blocks) More...
 
- Public Member Functions inherited from OTest2::TestMarkFormatter
 TestMarkFormatter (const TestMarkFormatter &)=delete
 
TestMarkFormatteroperator= (const TestMarkFormatter &)=delete
 
 TestMarkFormatter ()
 Ctor. More...
 
virtual ~TestMarkFormatter ()
 Dtor. More...
 

Detailed Description

Implementation of the testmark formatter based on an IO stream.

Definition at line 33 of file testmarkformatterios.h.

Constructor & Destructor Documentation

◆ TestMarkFormatterIOS() [1/2]

OTest2::TestMarkFormatterIOS::TestMarkFormatterIOS ( const TestMarkFormatterIOS )
delete

◆ TestMarkFormatterIOS() [2/2]

OTest2::TestMarkFormatterIOS::TestMarkFormatterIOS ( std::ostream *  os_,
const std::string &  prefix_ 
)
explicit

Ctor.

Parameters
os_An output stream. The ownership is not taken.
prefix_A prefix prepended to each line

Definition at line 30 of file testmarkformatterios.cpp.

◆ ~TestMarkFormatterIOS()

OTest2::TestMarkFormatterIOS::~TestMarkFormatterIOS ( )
virtualdefault

Dtor.

Member Function Documentation

◆ closeAdded()

void OTest2::TestMarkFormatterIOS::closeAdded ( const std::string &  label_,
const TestMark mark_,
int  indent_ 
)
overridevirtual

Print closing of an added testmark.

Parameters
label_Label of the testmark
mark_The testmark
indent_Indentation level

Implements OTest2::TestMarkFormatter.

Definition at line 115 of file testmarkformatterios.cpp.

◆ closeDeleted()

void OTest2::TestMarkFormatterIOS::closeDeleted ( const std::string &  label_,
const TestMark mark_,
int  indent_ 
)
overridevirtual

Print closing of a deleted testmark.

Parameters
label_Label of the testmark
mark_The testmark
indent_Indentation level

Implements OTest2::TestMarkFormatter.

Definition at line 97 of file testmarkformatterios.cpp.

◆ closeMark()

void OTest2::TestMarkFormatterIOS::closeMark ( const std::string &  label_,
const TestMark mark_,
int  indent_ 
)
overridevirtual

Print closing of a testmark.

Parameters
label_Label of the testmark
mark_The mark
indent_Indentation level

Implements OTest2::TestMarkFormatter.

Definition at line 81 of file testmarkformatterios.cpp.

◆ openAdded()

void OTest2::TestMarkFormatterIOS::openAdded ( const std::string &  label_,
const TestMark mark_,
int  indent_ 
)
overridevirtual

Print opening of an added testmark.

Parameters
label_Label of the testmark
mark_The testmark
indent_Indentation level

Implements OTest2::TestMarkFormatter.

Definition at line 106 of file testmarkformatterios.cpp.

◆ openDeleted()

void OTest2::TestMarkFormatterIOS::openDeleted ( const std::string &  label_,
const TestMark mark_,
int  indent_ 
)
overridevirtual

Print opening of a deleted testmark.

Parameters
label_Label of the testmark
markThe testmark
indent_Indentation level

Implements OTest2::TestMarkFormatter.

Definition at line 88 of file testmarkformatterios.cpp.

◆ openMark()

void OTest2::TestMarkFormatterIOS::openMark ( const std::string &  label_,
const TestMark mark_,
int  indent_ 
)
overridevirtual

Print opening of a testmark.

Parameters
label_Label of the testmark
mark_The testmark
indent_Indentation level

Implements OTest2::TestMarkFormatter.

Definition at line 74 of file testmarkformatterios.cpp.

◆ operator=()

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

◆ printSeparator()

void OTest2::TestMarkFormatterIOS::printSeparator ( )
overridevirtual

Print separator (used for unchanged blocks)

Implements OTest2::TestMarkFormatter.

Definition at line 124 of file testmarkformatterios.cpp.


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