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

Streambuffer interface used in the assertion API. More...

#include <assertbuffer.h>

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

Public Member Functions

 AssertBuffer (const AssertBuffer &)=delete
 
AssertBufferoperator= (const AssertBuffer &)=delete
 
 AssertBuffer ()
 Ctor. More...
 
virtual ~AssertBuffer ()
 Dtor. More...
 
virtual void setForeground (Color color_)=0
 Set foreground color. More...
 
virtual void setBackground (Color color_)=0
 Set background color. More...
 
virtual void setTextStyle (Style style_)=0
 Set style of the shown text. More...
 
virtual void resetAttributes ()=0
 Reset currently set text attributes. More...
 
virtual void commitMessage (const Context &context_)=0
 Commit (flush) current assertion message. More...
 
virtual void commitAssertion (const Context &context_)=0
 Finish current assertion. More...
 

Detailed Description

Streambuffer interface used in the assertion API.

Definition at line 34 of file assertbuffer.h.

Constructor & Destructor Documentation

◆ AssertBuffer() [1/2]

OTest2::AssertBuffer::AssertBuffer ( const AssertBuffer )
delete

◆ AssertBuffer() [2/2]

OTest2::AssertBuffer::AssertBuffer ( )
default

Ctor.

◆ ~AssertBuffer()

OTest2::AssertBuffer::~AssertBuffer ( )
virtualdefault

Dtor.

Member Function Documentation

◆ commitAssertion()

virtual void OTest2::AssertBuffer::commitAssertion ( const Context context_)
pure virtual

Finish current assertion.

Parameters
context_The OTest2 context

Implemented in OTest2::AssertBufferStr.

◆ commitMessage()

virtual void OTest2::AssertBuffer::commitMessage ( const Context context_)
pure virtual

Commit (flush) current assertion message.

Parameters
context_The OTest2 context

Implemented in OTest2::AssertBufferStr.

◆ operator=()

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

◆ resetAttributes()

virtual void OTest2::AssertBuffer::resetAttributes ( )
pure virtual

Reset currently set text attributes.

Implemented in OTest2::AssertBufferStr.

◆ setBackground()

virtual void OTest2::AssertBuffer::setBackground ( Color  color_)
pure virtual

Set background color.

Parameters
color_The color

Implemented in OTest2::AssertBufferStr.

◆ setForeground()

virtual void OTest2::AssertBuffer::setForeground ( Color  color_)
pure virtual

Set foreground color.

Parameters
color_The color

Implemented in OTest2::AssertBufferStr.

◆ setTextStyle()

virtual void OTest2::AssertBuffer::setTextStyle ( Style  style_)
pure virtual

Set style of the shown text.

Parameters
style_The style

Implemented in OTest2::AssertBufferStr.


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