File failed to load: https://isis.astrogeology.usgs.gov/8.3.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
TableRecord.h
1#ifndef TableRecord_h
2#define TableRecord_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include <vector>
11#include "TableField.h"
12
13namespace Isis {
39 public:
42
43
44 static QString toString(TableRecord record, QString fieldDelimiter = ",", bool fieldNames = false, bool endLine = true);
45
46 void operator+=(Isis::TableField &field);
47 TableField&operator [](const int field);
48 TableField &operator[](const QString &field);
49
50 int Fields() const;
51 int RecordSize() const;
52
53 void Pack(char *buf) const;
54 void Unpack(const char *buf);
55 void Swap(char *buf) const;
56
57 private:
58 std::vector<TableField> p_fields;
60 };
61};
62
63#endif
Class for storing an Isis::Table's field information.
Definition TableField.h:47
std::vector< TableField > p_fields
Vector of TableFields in the record.
Definition TableRecord.h:58
TableRecord()
Constructs an empty TableRecord object. No member variables are set.
void Unpack(const char *buf)
Reads record information from the binary buffer.
int RecordSize() const
Returns the number of bytes per record.
int Fields() const
Returns the number of fields that are currently in the record.
void Pack(char *buf) const
Writes record information into the binary buffer.
~TableRecord()
Destroys the TableRecord object.
void Swap(char *buf) const
Swaps bytes of the buffer, depending on the TableField::Type.
void operator+=(Isis::TableField &field)
Adds a TableField to a TableRecord.
TableField & operator[](const int field)
Returns the TableField at the specified location in the TableRecord.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/24/2025 16:15:17