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