76 operator double()
const;
77 operator float()
const;
78 operator QString()
const;
79 operator std::vector<int>()
const;
80 operator std::vector<double>()
const;
81 operator std::vector<float>()
const;
87 void operator=(
const std::vector<int> &values);
88 void operator=(
const std::vector<double> &values);
89 void operator=(
const std::vector<float> &value);
95 static QString toString(
const TableField &field, QString delimiter =
",");
Contains multiple PvlContainers.
Class for storing an Isis::Table's field information.
std::vector< float > m_rvalues
Vector containing Real field values.
int m_bytes
Number of bytes in field.
bool isInteger() const
Determines whether the field type is Integer.
std::vector< double > m_dvalues
Vector containing double field values.
bool isDouble() const
Determines whether the field type is Double.
bool isReal() const
Determines whether the field type is Text.
QString name() const
Returns the name of the TableField.
Type
This enum describes the value type for the TableField.
@ Integer
The values in the field are 4 byte integers.
@ Real
The values in the field are 4 byte reals or floats.
@ Text
The values in the field are text strings with 1 byte per character.
@ Double
The values in the field are 8 byte doubles.
int size() const
Returns the number of values stored for the field at each record.
PvlGroup pvlGroup()
Creates and returns a PvlGroup named "Field" containing the following keywords and their respective v...
bool isText() const
Determines whether the field type is Text.
QString m_name
Field name.
TableField(const QString &name, Type type, int size=1)
Constructs a TableField object with the given field name, field value type, and field size.
Type type() const
Returns the enumerated value of the TableField value's type.
int bytes() const
Returns the number of bytes in the field value.
std::vector< int > m_ivalues
Vector containing integer field values.
~TableField()
Destroys the TableField object.
QString m_svalue
String containing text value of field.
Type m_type
Field value type.
void operator=(const int value)
Sets field value equal to input if TableField::Type is Integer and size is 1.
This is free and unencumbered software released into the public domain.