|
Isis Developer Reference
|
Go to the documentation of this file.
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);
103 std::vector<int> m_ivalues;
106 std::vector<double> m_dvalues;
109 std::vector<float> m_rvalues;
Type type() const
Returns the enumerated value of the TableField value's type.
Definition: TableField.cpp:112
A single keyword-value pair.
Definition: PvlKeyword.h:82
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
bool isInteger() const
Determines whether the field type is Integer.
Definition: TableField.cpp:122
static QString toString(const TableField &field, QString delimiter=",")
Definition: TableField.cpp:610
TableField(const QString &name, Type type, int size=1)
Constructs a TableField object with the given field name, field value type, and field size.
Definition: TableField.cpp:25
@ Double
Definition: PixelType.h:36
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
bool isReal() const
Determines whether the field type is Text.
Definition: TableField.cpp:150
int bytes() const
Returns the number of bytes in the field value.
Definition: TableField.cpp:159
@ Integer
The values in the field are 4 byte integers.
Definition: TableField.h:53
@ Double
The values in the field are 8 byte doubles.
Definition: TableField.h:54
~TableField()
Destroys the TableField object.
Definition: TableField.cpp:89
Isis exception class.
Definition: IException.h:91
bool isDouble() const
Determines whether the field type is Double.
Definition: TableField.cpp:132
int size() const
Returns the number of values stored for the field at each record.
Definition: TableField.cpp:168
QString name() const
Returns the name of the TableField.
Definition: TableField.cpp:97
PvlGroup pvlGroup()
Creates and returns a PvlGroup named "Field" containing the following keywords and their respective v...
Definition: TableField.cpp:589
Namespace for the standard library.
bool isText() const
Determines whether the field type is Text.
Definition: TableField.cpp:141
Adds specific functionality to C++ strings.
Definition: IString.h:165
@ Real
The values in the field are 4 byte reals or floats.
Definition: TableField.h:57
@ Text
The values in the field are text strings with 1 byte per character.
Definition: TableField.h:55
void operator=(const int value)
Sets field value equal to input if TableField::Type is Integer and size is 1.
Definition: TableField.cpp:350
Type
This enum describes the value type for the TableField.
Definition: TableField.h:52
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ Real
Definition: PixelType.h:35
Class for storing an Isis::Table's field information.
Definition: TableField.h:47