ZeroErr
Loading...
Searching...
No Matches
zeroerr::IContextScope Class Referenceabstract

ContextScope is a helper class created in each basic block where you use INFO(). The context scope can has lazy evaluated function F(zeroerr::StringBuffer&) that is called when the assertation is failed. More...

#include <log.h>

Inheritance diagram for zeroerr::IContextScope:

Public Member Functions

virtual void str (zeroerr::StringBuffer &os) const =0
 Output context information to a stream.

Detailed Description

ContextScope is a helper class created in each basic block where you use INFO(). The context scope can has lazy evaluated function F(zeroerr::StringBuffer&) that is called when the assertation is failed.

Member Function Documentation

◆ str()

virtual void zeroerr::IContextScope::str ( zeroerr::StringBuffer & os) const
pure virtual

Output context information to a stream.

Parameters
osThe output stream to write context to

Implemented in zeroerr::ContextScope< F >.


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