BDE 4.14.0 Production release
|
Provide a suite of utility functions on ball::Severity
levels.
ball::Severity::Level
This component provides a suite of pure procedures that apply to the ball::Severity::Level
enumeration. In particular, the ball::SeverityUtil
struct
provides a fromAsciiCaseless
function that returns the ball::Severity::Level
enumerator value corresponding to a given ASCII string (without regard to the case of the characters in the string) and an isValidNameCaseless
function that confirms that a given string corresponds to one of the enumerators in the ball::Severity::Level
enumeration (similarly, without regard to the case of the characters in the string).
The following is a list of functions available in this component:
This section illustrates intended use of this component.
In this example, we show how to validate that a set of C-style strings correspond to ball::Severity::Level
enumerators, and then use those strings to generate enumerator values that, in turn, may be used to administer a logger manager. Here, for convenience, we define our strings in an array, much as how we might receive them from a command line: