Quick Links: |
#include <ball_severity.h>
Public Types | |
enum | Level { e_OFF = 0, e_FATAL = 32, e_ERROR = 64, e_WARN = 96, e_INFO = 128, e_DEBUG = 160, e_TRACE = 192, BAEL_OFF = e_OFF, BAEL_FATAL = e_FATAL, BAEL_ERROR = e_ERROR, BAEL_WARN = e_WARN, BAEL_INFO = e_INFO, BAEL_DEBUG = e_DEBUG, BAEL_TRACE = e_TRACE, BAEL_NONE = 224, OFF = e_OFF, FATAL = e_FATAL, ERROR = e_ERROR, WARN = e_WARN, INFO = e_INFO, DEBUG = e_DEBUG, TRACE = e_TRACE, NONE = BAEL_NONE } |
enum | { e_LENGTH = 7, BAEL_LENGTH = e_LENGTH + 1 } |
Static Public Member Functions | |
static int | fromAscii (Severity::Level *level, const char *string, int stringLength) |
static const char * | toAscii (Severity::Level value) |
static bsl::ostream & | streamOut (bsl::ostream &stream, Severity::Level value) |
This struct provides a namespace for enumerating severity levels.
static int ball::Severity::fromAscii | ( | Severity::Level * | level, | |
const char * | string, | |||
int | stringLength | |||
) | [static] |
Load into the specified level
the severity matching the specified case-insensitive string
of the specified stringLength
. Return 0 on success, and a non-zero value with no effect on level
otherwise (i.e., string
does not match any Level
enumerator).
static const char* ball::Severity::toAscii | ( | Severity::Level | value | ) | [static] |
Return the string representation exactly matching the enumerator name corresponding to the specified enumeration value
.
static bsl::ostream& ball::Severity::streamOut | ( | bsl::ostream & | stream, | |
Severity::Level | value | |||
) | [static] |
Format the specified value
to the specified output stream
and return a reference to the modifiable stream
.