casacore
Public Types | Static Public Member Functions | List of all members
casacore::Quality Class Reference

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. More...
 
static QualityTypes type (const String &quality)
 Convert String to QualityTypes, returns Quality::Undefined if it is an unrecognized string. More...
 
static String name (QualityTypes qualityType)
 Convert QualityTypes to String, Quality::Undefined returns "??". More...
 
static Vector< StringallNames (Bool includeUndefined=False)
 Get all recognized quality names in no guaranteed order. More...
 

Detailed Description

Quality parameter definitions.

Review Status

Test programs:
tQuality

Synopsis

This enumerates the available Quality types. This class is a wrapper for the ENUM and conversion functions. All methods are static.

Definition at line 49 of file Quality.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The number of QualityTypes.


Warning: Update NumberOfTypes when entries are added;

Enumerator
NumberOfTypes 

The number of QualityTypes.

Definition at line 70 of file Quality.h.

◆ QualityTypes

Enumerator
Undefined 

undefined value = 0

DATA 

the data type

ERROR 

the error type

Definition at line 54 of file Quality.h.

Member Function Documentation

◆ allNames()

static Vector<String> casacore::Quality::allNames ( Bool  includeUndefined = False)
static

Get all recognized quality names in no guaranteed order.

The undefined type can be included.

◆ name()

static String casacore::Quality::name ( QualityTypes  qualityType)
static

Convert QualityTypes to String, Quality::Undefined returns "??".

◆ type() [1/2]

static QualityTypes casacore::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).

◆ type() [2/2]

static QualityTypes casacore::Quality::type ( Int  qualityNumber)
static

Convert Int to QualityTypes, returns Quality::Undefined if it is an invalid type.


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