Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

ball::Severity Struct Reference

#include <ball_severity.h>

List of all members.

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)

Detailed Description

This struct provides a namespace for enumerating severity levels.

See Component ball_severity


Member Enumeration Documentation

Enumerator:
e_OFF 

disable generation of corresponding message

e_FATAL 

a condition that will (likely) cause a crash

e_ERROR 

a condition that will cause incorrect behavior

e_WARN 

a potentially problematic condition

e_INFO 

data about the running process

e_DEBUG 

information useful while debugging

e_TRACE 

execution trace data

BAEL_OFF 
BAEL_FATAL 
BAEL_ERROR 
BAEL_WARN 
BAEL_INFO 
BAEL_DEBUG 
BAEL_TRACE 
BAEL_NONE 
OFF 
FATAL 
ERROR 
WARN 
INFO 
DEBUG 
TRACE 
NONE 
anonymous enum
Enumerator:
e_LENGTH 
BAEL_LENGTH 

Member Function Documentation

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.


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