Isis Developer Reference
Isis::ExportPdsTable Class Reference

Export a PDS table from an ISIS Table. More...

#include <ExportPdsTable.h>

Collaboration diagram for Isis::ExportPdsTable:
Collaboration graph

Public Member Functions

 ExportPdsTable (Table isisTable)
 Construct an ExportPdsTable object and set default member variable values.
 
 ~ExportPdsTable ()
 Destructs for ExportPdsTable objects.
 
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.
 

Static Public Member Functions

static QString formatPdsTableName (QString isisTableName)
 Static method that formats the given ISIS table name in PDS format.
 

Detailed Description

Export a PDS table from an ISIS Table.

This class ingests an ISIS Table and converts it to a PDS Table.

NOTE: This class exports BINARY format PDS tables. The PDS Standards Reference document indicates that for files containing multiple tables with binary data, the records should be FIXED_LENGTH (not STREAM) and that this value should be the length of the longest record in the file (Appendix A, PDS Standards, last updated February 27, 2009). This document also indicates that all table rows that are less than the fixed record length value should be padded (ususally with nulls).

See also
http://pds.nasa.gov/standards-reference.shtml
http://pds.nasa.gov/documents/sr/AppendixA.pdf
ExportPdsTable pdsTable(isisTable);
pdsTable.exportToPds(buffer, recordBytes, "LSB");
Export a PDS table from an ISIS Table.
Definition ExportPdsTable.h:52
Author
2012-07-21 Jeannie Backer

Constructor & Destructor Documentation

◆ ExportPdsTable()

Isis::ExportPdsTable::ExportPdsTable ( Table isisTable)

Construct an ExportPdsTable object and set default member variable values.

This constructor sets the following defaults:

  • BYTEORDER = "LSB"
  • ROWS = Records
  • ROW_BYTES = RecordSize
Parameters
isisTableThe ISIS Table object to be exported.

References Isis::Table::RecordSize().

◆ ~ExportPdsTable()

Isis::ExportPdsTable::~ExportPdsTable ( )

Destructs for ExportPdsTable objects.

Member Function Documentation

◆ exportTable()

PvlObject Isis::ExportPdsTable::exportTable ( char * pdsTableBuffer,
int outputFileRecordBytes,
QString pdsTableByteOrder )

This methods fills the given buffer with the binary PDS table data and returns label information.

Parameters
pdsTableBufferThis buffer will be filled with binary PDS table data.
pdsFileRecordBytesThe number or RECORD_BYTES in the PDS file.
pdsByteOrderA string containing the byte order of the PDS file. Valid values are "LSB" or "MSB".
Returns
PvlObject A Pvl containing the PDS table's label information.

References _FILEINFO_, Isis::Table::Name(), Isis::Table::Records(), Isis::TableRecord::RecordSize(), Isis::toString(), and Isis::IException::Unknown.

◆ formatPdsTableName() [1/2]

QString Isis::ExportPdsTable::formatPdsTableName ( )

Format the PDS table object name using the ISIS table name.

Returns
QString containing the formatted PDS table name.

References formatPdsTableName(), and Isis::Table::Name().

Referenced by formatPdsTableName().

◆ formatPdsTableName() [2/2]

QString Isis::ExportPdsTable::formatPdsTableName ( QString isisTableName)
static

Static method that formats the given ISIS table name in PDS format.

This method takes the upper camel case Isis table name and returns a PDS table name that is underscore separated, all upper case and with "_TABLE" appended to the end of the name, if not already present.

Parameters
isisTableNameAn QString containing the ISIS upper camel case table name.
Returns
QString containing the formatted PDS table name.

The documentation for this class was generated from the following files: