casa::TBField Class Reference
Representation of a table field.
More...
#include <TBField.h>
List of all members.
Public Member Functions |
| | TBField (String name, String type) |
| | Constructor to take the name and type.
|
| | ~TBField () |
| String | getName () |
| | Returns this field's name.
|
| String | getType () |
| | Returns this field's type.
|
| std::vector< TBKeyword * > * | getKeywords () |
| | Returns this field's keywords.
|
| TBKeyword * | keyword (int i) |
| | Returns the keyword at index i, or NULL if there is none.
|
| TBKeyword * | keyword (String name) |
| | Returns the keyword with name i, or NULL if there is none.
|
| unsigned int | numKeywords () |
| | Returns the number of keywords this field has.
|
| TBKeyword * | keywordAt (unsigned int i) |
| | Returns the keyword at index i.
|
| void | addKeyword (TBKeyword *keyword) |
| | Adds the given keyword to this field's keyword list.
|
| void | setUCD (String ucd) |
| | Sets this field's UCD property.
|
| String | getUCD () |
| | Returns this field's UCD property, or an empty String if it is not set.
|
| void | setRef (String ref) |
| | Sets this field's ref property.
|
| String | getRef () |
| | Returns this field's ref property, or an empty String if it is not set.
|
| void | setUnit (String unit) |
| | Sets this field's unit property.
|
| String | getUnit () |
| | Returns this field's unit property, or an empty String if it is not set.
|
| void | setPrecision (String precision) |
| | Sets this field's precision property.
|
| String | getPrecision () |
| | Returns this field's precision property, or an empty String if it is not set.
|
| void | setWidth (String width) |
| | Sets this field's width property.
|
| String | getWidth () |
| | Returns this field's width property, or an empty String if it is not set.
|
Private Attributes |
| String | name |
| | Field name.
|
| String | type |
| | Field type.
|
| std::vector< TBKeyword * > | keywords |
| | Field keywords.
|
| String | ucd |
| | Field UCD.
|
| String | ref |
| | Field ref.
|
| String | unit |
| | Field unit.
|
| String | precision |
| | Field precision.
|
| String | width |
| | Field width.
|
Detailed Description
Representation of a table field.
Synopsis
A TBField consists of a name, a type, a potentially empty list of keywords, and some other potentially empty properties.
Definition at line 48 of file TBField.h.
Constructor & Destructor Documentation
| casa::TBField::TBField |
( |
String |
name, |
|
|
String |
type | |
|
) |
| | |
Constructor to take the name and type.
Other properties must be added via method calls.
| casa::TBField::~TBField |
( |
|
) |
|
Member Function Documentation
| void casa::TBField::addKeyword |
( |
TBKeyword * |
keyword |
) |
|
Adds the given keyword to this field's keyword list.
| std::vector<TBKeyword*>* casa::TBField::getKeywords |
( |
|
) |
|
Returns this field's keywords.
| String casa::TBField::getName |
( |
|
) |
|
Returns this field's name.
| String casa::TBField::getPrecision |
( |
|
) |
|
Returns this field's precision property, or an empty String if it is not set.
| String casa::TBField::getRef |
( |
|
) |
|
Returns this field's ref property, or an empty String if it is not set.
| String casa::TBField::getType |
( |
|
) |
|
Returns this field's type.
| String casa::TBField::getUCD |
( |
|
) |
|
Returns this field's UCD property, or an empty String if it is not set.
| String casa::TBField::getUnit |
( |
|
) |
|
Returns this field's unit property, or an empty String if it is not set.
| String casa::TBField::getWidth |
( |
|
) |
|
Returns this field's width property, or an empty String if it is not set.
| TBKeyword* casa::TBField::keyword |
( |
String |
name |
) |
|
Returns the keyword with name i, or NULL if there is none.
Returns the keyword at index i, or NULL if there is none.
| TBKeyword* casa::TBField::keywordAt |
( |
unsigned int |
i |
) |
|
Returns the keyword at index i.
| unsigned int casa::TBField::numKeywords |
( |
|
) |
|
Returns the number of keywords this field has.
| void casa::TBField::setPrecision |
( |
String |
precision |
) |
|
Sets this field's precision property.
| void casa::TBField::setRef |
( |
String |
ref |
) |
|
Sets this field's ref property.
| void casa::TBField::setUCD |
( |
String |
ucd |
) |
|
Sets this field's UCD property.
| void casa::TBField::setUnit |
( |
String |
unit |
) |
|
Sets this field's unit property.
| void casa::TBField::setWidth |
( |
String |
width |
) |
|
Sets this field's width property.
Member Data Documentation
The documentation for this class was generated from the following file: