Isis 3 Programmer Reference
ExportPdsTable.h
1#ifndef ExportPdsTable_h
2#define ExportPdsTable_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include <fstream>
11
12#include <QString>
13
14namespace Isis {
15 class EndianSwapper;
16 class Pvl;
17 class PvlObject;
18 class Table;
19 class TableRecord;
53 public:
54 ExportPdsTable(Table isisTable);
56 PvlObject exportTable(char *pdsTableBuffer, int pdsFileRecordBytes,
57 QString pdsByteOrder);
58 QString formatPdsTableName();
59 static QString formatPdsTableName(QString isisTableName);
60 private:
61 void Pack(TableRecord record, char *buffer, EndianSwapper *endianSwap);
75 };
76}
77#endif
Export a PDS table from an ISIS Table.
~ExportPdsTable()
Destructs for ExportPdsTable objects.
void Pack(TableRecord record, char *buffer, EndianSwapper *endianSwap)
Pack the buffer with data from the table record, swapping bytes if needed.
int m_numRows
The number of rows in the exported PDS table.
QString m_pdsByteOrder
A string indicating the byte order of the exported PDS file.
PvlObject fillMetaData()
Creates a PvlObject to be added to the PDS label with needed TABLE information.
PvlObject exportTable(char *pdsTableBuffer, int pdsFileRecordBytes, QString pdsByteOrder)
This methods fills the given buffer with the binary PDS table data and returns label information.
QString formatPdsTableName()
Format the PDS table object name using the ISIS table name.
int m_rowBytes
The number of bytes per row in the exported PDS table.
int m_outputRecordBytes
The number of bytes per record in the exported PDS file.
Table * m_isisTable
Input ISIS Table object to be exported.
ExportPdsTable(Table isisTable)
Construct an ExportPdsTable object and set default member variable values.
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
Class for storing Table blobs information.
Definition Table.h:61
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16