casa
$Rev:20696$
|
Quality parameter definitions. More...
#include <Quality.h>
Public Types | |
enum | QualityTypes { Undefined, DATA, ERROR } |
enum | { NumberOfTypes } |
The number of QualityTypes. More... | |
Static Public Member Functions | |
static QualityTypes | type (Int qualityNumber) |
Convert Int to QualityTypes, returns Quality::Undefined if it is an invalid type. | |
static QualityTypes | type (const String &quality) |
Convert String to QualityTypes, returns Quality::Undefined if it is an unrecognized string. | |
static String | name (QualityTypes qualityType) |
Convert QualityTypes to String, Quality::Undefined returns "??". | |
static Vector< String > | allNames (Bool includeUndefined=False) |
Get all recognized quality names in no guaranteed order. |
Quality parameter definitions.
This enumerates the available Quality types. This class is a wrapper for the ENUM and conversion functions. All methods are static.
anonymous enum |
static Vector<String> casa::Quality::allNames | ( | Bool | includeUndefined = False | ) | [static] |
Get all recognized quality names in no guaranteed order.
The undefined type can be included.
static String casa::Quality::name | ( | QualityTypes | qualityType | ) | [static] |
Convert QualityTypes to String, Quality::Undefined returns "??".
static QualityTypes casa::Quality::type | ( | Int | qualityNumber | ) | [static] |
Convert Int to QualityTypes, returns Quality::Undefined if it is an invalid type.
static QualityTypes casa::Quality::type | ( | const String & | quality | ) | [static] |
Convert String to QualityTypes, returns Quality::Undefined if it is an unrecognized string.
The valid strings are the same as the characters used in the enum above (i.e. "DATA" returns Quality::DATA, "ERROR" returns Quality::ERROR, etc).