Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
An object of this class simulates a std::cout stream. This means messages can be added by using the bit shift operator (<<). Should only be used by the macros defined in the file mbilog.h. More...
#include <mbilog.h>
Public Member Functions | |
PseudoStream (int level, const char *filePath, int lineNumber, const char *functionName) | |
~PseudoStream () | |
The message which is stored in the member ss is written to the backend. More... | |
template<class T > | |
PseudoStream & | operator<< (const T &data) |
Definition of the bit shift operator for this class. More... | |
template<class T > | |
PseudoStream & | operator<< (T &data) |
Definition of the bit shift operator for this class (for non const data). More... | |
PseudoStream & | operator<< (std::ostream &(*func)(std::ostream &)) |
Definition of the bit shift operator for this class (for functions). More... | |
PseudoStream & | operator() (const char *category) |
Sets the category of this PseudoStream object. If there already is a category it is appended, seperated by a dot. More... | |
PseudoStream & | operator() (bool enabled) |
Enables/disables the PseudoStream. If set to false parsing and output is suppressed. More... | |
Protected Attributes | |
bool | disabled |
LogMessage | msg |
std::stringstream | ss |
An object of this class simulates a std::cout stream. This means messages can be added by using the bit shift operator (<<). Should only be used by the macros defined in the file mbilog.h.
|
inline |
|
inline |
The message which is stored in the member ss is written to the backend.
Definition at line 74 of file mbilog.h.
References mbilog::DistributeToBackends(), MBILOG_MODULENAME, mbilog::LogMessage::message, and mbilog::LogMessage::moduleName.
|
inline |
Enables/disables the PseudoStream. If set to false parsing and output is suppressed.
|
inline |
Sets the category of this PseudoStream object. If there already is a category it is appended, seperated by a dot.
Definition at line 136 of file mbilog.h.
References mbilog::LogMessage::category.
|
inline |
|
inline |
|
inline |
|
protected |