Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

ball::SeverityUtil Struct Reference

#include <ball_severityutil.h>

List of all members.

Static Public Member Functions

static int fromAsciiCaseless (Severity::Level *level, const char *name)
static bool isValidNameCaseless (const char *name)
static int fromAscii (Severity::Level *level, const char *name)
static bool isValidName (const char *name)

Detailed Description

This struct provides a namespace for non-primitive procedures on the Severity::Level enumeration.

See Component ball_severityutil


Member Function Documentation

static int ball::SeverityUtil::fromAsciiCaseless ( Severity::Level level,
const char *  name 
) [static]

Load into the specified level the value of the Severity::Level enumerator corresponding to the specified name (without regard to the case of the characters in name). Return 0 on success, and a non-zero value with no effect on level otherwise. The behavior is undefined unless level is non-null and name is a null-terminated (C-style) string. Note that this procedure will fail unless isValidName(name) is 'true.

static bool ball::SeverityUtil::isValidNameCaseless ( const char *  name  )  [static]

Return true if the specified name corresponds to an enumerator in the Severity::Level enumeration (without regard to the characters in name), and false otherwise. The behavior is undefined unless name is a null-terminated (C-style) string. Note that the names corresponding to Severity::Level enumerators are case insensitive.

static int ball::SeverityUtil::fromAscii ( Severity::Level level,
const char *  name 
) [static]

Load into the specified level the value of the Severity::Level enumerator corresponding to the specified name (without regard to the case of the characters in name). Return 0 on success, and a non-zero value with no effect on level otherwise. The behavior is undefined unless level is non-null and name is a null-terminated (C-style) string. Note that this procedure will fail unless isValidName(name) is true.

DEPRECATED: Use fromAsciiCaseless instead. Note that this method provides backward compatibility for clients of the deprecated baelu_severity component.

static bool ball::SeverityUtil::isValidName ( const char *  name  )  [static]

Return true if the specified name corresponds to an enumerator in the Severity::Level enumeration, and false otherwise. The behavior is undefined unless name is a null-terminated (C-style) string. Note that the names corresponding to Severity::Level enumerators are case insensitive.

DEPRECATED: Use isValidNameCaseless instead. Note that this method provides backward compatibility for clients of the deprecated baelu_severity component.


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