The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
MemCore::Irregularity Struct Reference

Handling irregular occurences in the program without terminating it but instead writing a logfile with extensive information and continuing program execution. More...

#include <elementary/memcore/Irregularity.hpp>

Public Member Functions

Irregularityoperator<< (const std::type_info &Type)
 For types.
 

Detailed Description

Handling irregular occurences in the program without terminating it but instead writing a logfile with extensive information and continuing program execution.

What is an irregularity? It is some unexpected behavior in the program that can be checked, so it is a kind of expectable occurance that is not believed ever happen. Traditionally the C assert() function or a C++ exception will be used to handle such as case. However, if it is not severe enough to terminate a program workflow, we may just want to write a logfile that allows to inform the developer about the detailed circumstances of the event.