BDE 4.14.0 Production release
Loading...
Searching...
No Matches
ball::Severity Struct Reference

#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 , OFF = e_OFF , FATAL = e_FATAL ,
  ERROR = e_ERROR , WARN = e_WARN , INFO = e_INFO , DEBUG = e_DEBUG ,
  TRACE = e_TRACE
}
 
enum  { e_LENGTH = 7 }
 

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)
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Define e_LENGTH to be the number of enumerators in the Level enumeration.

Enumerator
e_LENGTH 

◆ Level

Enumerator
e_OFF 
e_FATAL 
e_ERROR 
e_WARN 
e_INFO 
e_DEBUG 
e_TRACE 
BAEL_OFF 
BAEL_FATAL 
BAEL_ERROR 
BAEL_WARN 
BAEL_INFO 
BAEL_DEBUG 
BAEL_TRACE 
OFF 
FATAL 
ERROR 
WARN 
INFO 
DEBUG 
TRACE 

Member Function Documentation

◆ fromAscii()

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).

◆ streamOut()

bsl::ostream & ball::Severity::streamOut ( bsl::ostream &  stream,
Severity::Level  value 
)
inlinestatic

Format the specified value to the specified output stream and return a reference to the modifiable stream.

◆ toAscii()

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.


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