Flow123d
JS_before_hm-1001-gfa0c761
|
Helper class, store mask specifying streams. More...
#include <logger.hh>
Public Member Functions | |
StreamMask () | |
Empty constructor. More... | |
StreamMask (int mask) | |
Constructor set mask_ value. More... | |
StreamMask | operator& (const StreamMask &other) |
StreamMask | operator| (const StreamMask &other) |
int | operator() (void) |
Static Public Attributes | |
static StreamMask | cout = StreamMask(0b00000001) |
Predefined mask of std::cout output. More... | |
static StreamMask | cerr = StreamMask(0b00000010) |
Predefined mask of std::cerr output. More... | |
static StreamMask | log = StreamMask(0b00000100) |
Predefined mask of log file output. More... | |
Private Attributes | |
int | mask_ |
Helper class, store mask specifying streams.
Defines masks of all used streams as static methods and allows combining and comparing masks using the overloaded operators.
|
inline |
|
inline |
StreamMask StreamMask::operator& | ( | const StreamMask & | other | ) |
StreamMask StreamMask::operator| | ( | const StreamMask & | other | ) |
|
static |
|
static |
|
static |