casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Static Public Member Functions | List of all members
casa::AttValue Class Reference

Provision of type identification services for Attribute classes. More...

#include <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 (casacore::uInt *)
 Determine the type of a scalar or casacore::Array variable. More...
 
static AttValue::ValueType whatType (casacore::Vector< casacore::uInt > *)
 
static AttValue::ValueType whatType (casacore::Int *)
 
static AttValue::ValueType whatType (casacore::Vector< casacore::Int > *)
 
static AttValue::ValueType whatType (casacore::Float *)
 
static AttValue::ValueType whatType (casacore::Vector< casacore::Float > *)
 
static AttValue::ValueType whatType (casacore::Double *)
 
static AttValue::ValueType whatType (casacore::Vector< casacore::Double > *)
 
static AttValue::ValueType whatType (casacore::Bool *)
 
static AttValue::ValueType whatType (casacore::Vector< casacore::Bool > *)
 
static AttValue::ValueType whatType (casacore::String *)
 
static AttValue::ValueType whatType (casacore::Vector< casacore::String > *)
 
static AttValue::ValueType whatType (casacore::Quantity *)
 
static AttValue::ValueType whatType (casacore::Vector< casacore::Quantity > *)
 
static AttValue::ValueType whatType (void *)
 

Detailed Description

Provision of type identification services for Attribute classes.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd
Test programs:
tAttribute

Etymology

"AttValue" is a contraction of "Attribute Value"

Synopsis

AttValue provides type identification services for use in the Attribute classes.

Example

AttValue can be used to provide an enumeration which identifies the type of a variable, for example:

throw(casacore::AipsError(casacore::String("Incorrect type identification in AttValue")));
}

Motivation

This is a support class to unify type identification for the various Attribute classes.

To Do

Definition at line 77 of file AttValBase.h.

Member Enumeration Documentation

The possible value types.

Enumerator
AtuInt 
AtInt 
AtFloat 
AtDouble 
AtBool 
AtString 
AtQuantity 
AtInvalid 

Definition at line 82 of file AttValBase.h.

Member Function Documentation

static AttValue::ValueType casa::AttValue::whatType ( casacore::uInt )
inlinestatic

Determine the type of a scalar or casacore::Array variable.

Definition at line 95 of file AttValBase.h.

References AtuInt.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::uInt > *  )
inlinestatic

Definition at line 98 of file AttValBase.h.

References AtuInt.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Int )
inlinestatic

Definition at line 101 of file AttValBase.h.

References AtInt.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::Int > *  )
inlinestatic

Definition at line 104 of file AttValBase.h.

References AtInt.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Float )
inlinestatic

Definition at line 107 of file AttValBase.h.

References AtFloat.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::Float > *  )
inlinestatic

Definition at line 110 of file AttValBase.h.

References AtFloat.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Double )
inlinestatic

Definition at line 113 of file AttValBase.h.

References AtDouble.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::Double > *  )
inlinestatic

Definition at line 116 of file AttValBase.h.

References AtDouble.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Bool )
inlinestatic

Definition at line 119 of file AttValBase.h.

References AtBool.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::Bool > *  )
inlinestatic

Definition at line 122 of file AttValBase.h.

References AtBool.

static AttValue::ValueType casa::AttValue::whatType ( casacore::String )
inlinestatic

Definition at line 125 of file AttValBase.h.

References AtString.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::String > *  )
inlinestatic

Definition at line 128 of file AttValBase.h.

References AtString.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Quantity )
inlinestatic

Definition at line 131 of file AttValBase.h.

References AtQuantity.

static AttValue::ValueType casa::AttValue::whatType ( casacore::Vector< casacore::Quantity > *  )
inlinestatic

Definition at line 134 of file AttValBase.h.

References AtQuantity.

static AttValue::ValueType casa::AttValue::whatType ( void *  )
inlinestatic

Definition at line 137 of file AttValBase.h.

References AtInvalid.


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