#include <AttValBase.h>
Internal
"AttValue" is a contraction of "Attribute Value"
AttValue provides type identification services for use in the Attribute classes.
AttValue can be used to provide an enumeration which identifies the type of a variable, for example:
Int i;
if (AttValue::whatType(&i) != AttValue::AtInt) {
throw(AipsError(String("Incorrect type identification in AttValue")));
}
This is a support class to unify type identification for the various Attribute classes.
Definition at line 77 of file AttValBase.h.
Public Types | |
| enum | ValueType { AtuInt, AtInt, AtFloat, AtDouble, AtBool, AtString, AtQuantity, AtInvalid } |
| The possible value types. More... | |
Static Public Member Functions | |
| static AttValue::ValueType | whatType (uInt *) |
| Determine the type of a scalar or Array variable. | |
| static AttValue::ValueType | whatType (Vector< uInt > *) |
| static AttValue::ValueType | whatType (Int *) |
| static AttValue::ValueType | whatType (Vector< Int > *) |
| static AttValue::ValueType | whatType (Float *) |
| static AttValue::ValueType | whatType (Vector< Float > *) |
| static AttValue::ValueType | whatType (Double *) |
| static AttValue::ValueType | whatType (Vector< Double > *) |
| static AttValue::ValueType | whatType (Bool *) |
| static AttValue::ValueType | whatType (Vector< Bool > *) |
| static AttValue::ValueType | whatType (String *) |
| static AttValue::ValueType | whatType (Vector< String > *) |
| static AttValue::ValueType | whatType (Quantity *) |
| static AttValue::ValueType | whatType (Vector< Quantity > *) |
| static AttValue::ValueType | whatType (void *) |
| static AttValue::ValueType casa::AttValue::whatType | ( | uInt * | ) | [inline, static] |
Determine the type of a scalar or Array variable.
Definition at line 95 of file AttValBase.h.
References AtuInt.
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< uInt > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Int * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< Int > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Float * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< Float > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Double * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< Double > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Bool * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< Bool > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | String * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< String > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Quantity * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | Vector< Quantity > * | ) | [inline, static] |
| static AttValue::ValueType casa::AttValue::whatType | ( | void * | ) | [inline, static] |
1.5.1