casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TBDataRecord Class Reference

Implementation of TBData for Record data. More...

#include <TBData.h>

Inheritance diagram for casa::TBDataRecord:
casa::TBData

List of all members.

Public Member Functions

 TBDataRecord (const RecordInterface &value)
 Constructor that takes the Record data.
 TBDataRecord (RecordInterface *value)
 Constructor that takes the Record data.
 TBDataRecord (TBData &data)
 Constructor that calls setValue().
virtual ~TBDataRecord ()
String asString ()
 Returns the value in String form.
RecordasRecord ()
 Returns the value.
double asDouble ()
 Invalid operations.
float asFloat ()
 asFloat() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a float.
int asInt ()
 asInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an int.
unsigned int asUInt ()
 asUInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned int.
short int asShort ()
 asShort() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a short.
bool asBool ()
 asBool() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a boolean.
char asChar ()
 asChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a char.
unsigned char asUChar ()
 asUChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned character.
pair< float, float > asComplex ()
 asComplex() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a complex.
pair< double, double > asDComplex ()
 asDComplex() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a double complex.
void setValue (TBData &value)
 Iff the given TBData is a Record, sets the Record value.
String getType ()
 Returns the Record type.
bool equals (TBData *data)
 Returns true if the given data is a Record type and their values are equal, false otherwise.

Private Attributes

Record value
 Value.

Detailed Description

Implementation of TBData for Record data.

Definition at line 851 of file TBData.h.


Constructor & Destructor Documentation

Constructor that takes the Record data.

Constructor that takes the Record data.

Constructor that calls setValue().

virtual casa::TBDataRecord::~TBDataRecord ( ) [virtual]

Member Function Documentation

bool casa::TBDataRecord::asBool ( ) [inline, virtual]

asBool() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a boolean.

Implements casa::TBData.

Definition at line 879 of file TBData.h.

char casa::TBDataRecord::asChar ( ) [inline, virtual]

asChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a char.

Implements casa::TBData.

Definition at line 880 of file TBData.h.

pair<float, float> casa::TBDataRecord::asComplex ( ) [inline, virtual]

asComplex() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a complex.

Implements casa::TBData.

Definition at line 882 of file TBData.h.

pair<double, double> casa::TBDataRecord::asDComplex ( ) [inline, virtual]

asDComplex() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a double complex.

Implements casa::TBData.

Definition at line 883 of file TBData.h.

double casa::TBDataRecord::asDouble ( ) [inline, virtual]

Invalid operations.

Implements casa::TBData.

Definition at line 874 of file TBData.h.

float casa::TBDataRecord::asFloat ( ) [inline, virtual]

asFloat() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a float.

Implements casa::TBData.

Definition at line 875 of file TBData.h.

int casa::TBDataRecord::asInt ( ) [inline, virtual]

asInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an int.

Implements casa::TBData.

Definition at line 876 of file TBData.h.

Returns the value.

Implements casa::TBData.

short int casa::TBDataRecord::asShort ( ) [inline, virtual]

asShort() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as a short.

Implements casa::TBData.

Definition at line 878 of file TBData.h.

Returns the value in String form.

Implements casa::TBData.

unsigned char casa::TBDataRecord::asUChar ( ) [inline, virtual]

asUChar() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned character.

Implements casa::TBData.

Definition at line 881 of file TBData.h.

unsigned int casa::TBDataRecord::asUInt ( ) [inline, virtual]

asUInt() must be implemented by any subclass, although the returned value does not have to be valid for classes for which the value cannot be represented as an unsigned int.

Implements casa::TBData.

Definition at line 877 of file TBData.h.

bool casa::TBDataRecord::equals ( TBData data) [virtual]

Returns true if the given data is a Record type and their values are equal, false otherwise.

Implements casa::TBData.

String casa::TBDataRecord::getType ( ) [inline, virtual]

Returns the Record type.

Implements casa::TBData.

Definition at line 891 of file TBData.h.

void casa::TBDataRecord::setValue ( TBData value) [virtual]

Iff the given TBData is a Record, sets the Record value.

Implements casa::TBData.


Member Data Documentation

Value.

Definition at line 899 of file TBData.h.


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