An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis Developer Reference
|
Formats the value of a PvlKeyword into a PDS complient string. More...
#include <PvlFormatPds.h>
Public Member Functions | |
PvlFormatPds () | |
PvlFormatPds (const QString &file) | |
PvlFormatPds (Pvl &keymap) | |
virtual | ~PvlFormatPds () |
virtual QString | formatValue (const PvlKeyword &keyword, int valueIndex=0) |
virtual QString | formatName (const PvlKeyword &keyword) |
virtual QString | formatEnd (const QString name, const PvlKeyword &keyword) |
virtual QString | formatEOL () |
void | add (const QString &file) |
void | add (Pvl &keymap) |
void | setCharLimit (const unsigned int limit) |
Sets the maximum number of characters in a keyword value that can be printed to a line before it wraps to the next line. | |
unsigned int | charLimit () const |
Retrieves the maximum number of characters in a keyword value that can be printed to a line before it wraps to the next line. | |
virtual KeywordType | type (const PvlKeyword &keyword) |
virtual int | accuracy (const PvlKeyword &keyword) |
Protected Member Functions | |
virtual QString | addQuotes (const QString value) |
QString | formatString (const PvlKeyword &keyword, int num) |
QString | formatInteger (const PvlKeyword &keyword, int num, int bytes) |
QString | formatReal (const PvlKeyword &keyword, int num, int precision) |
QString | formatEnum (const PvlKeyword &keyword, int num) |
QString | formatBinary (const PvlKeyword &keyword, int num, int bytes) |
QString | formatHex (const PvlKeyword &keyword, int num, int bytes) |
QString | formatBool (const PvlKeyword &keyword, int num) |
QString | formatUnknown (const PvlKeyword &keyword, int num) |
bool | isSingleUnit (const PvlKeyword &keyword) |
Returns true if the units are the same for all value in the keyword otherwise it returns false. | |
Protected Attributes | |
QString | m_keywordMapFile |
Pvl | m_keywordMap |
unsigned int | m_charLimit |
Maximum number of characters on a single line of a keyword value. | |
Formats the value of a PvlKeyword into a PDS complient string.
This class is used to format a single PVL keyword-value pair. The supported formats are Normal and PDS. The keyword to type mapping is not defined until a Pvl or Pvl formatted file is supplied.
Isis::PvlFormatPds::PvlFormatPds | ( | ) |
Isis::PvlFormatPds::PvlFormatPds | ( | const QString & | file | ) |
References Isis::PvlFormat::PvlFormat().
Isis::PvlFormatPds::PvlFormatPds | ( | Pvl & | keymap | ) |
References Isis::PvlFormat::PvlFormat().
|
inlinevirtual |
|
virtualinherited |
References m_keywordMap, Isis::PvlKeyword::name(), Isis::PvlKeyword::size(), and Isis::toInt().
Referenced by Isis::PvlFormatPds::formatValue().
|
inherited |
References _FILEINFO_, add(), m_keywordMapFile, and Isis::IException::Programmer.
Referenced by add(), Isis::ProcessExportPds::CreateImageLabel(), Isis::ProcessExportPds::FixedJP2ImageRoot(), PvlFormat(), PvlFormat(), Isis::ProcessExportPds::StandardImageImage(), Isis::ProcessExportPds::StandardJP2Image(), and Isis::ProcessExportPds::StreamJP2ImageRoot().
|
inherited |
|
protectedvirtual |
Reimplemented from Isis::PvlFormat.
Referenced by formatString().
|
inlineinherited |
Retrieves the maximum number of characters in a keyword value that can be printed to a line before it wraps to the next line.
By default, the limit is set to 80 characters.
References m_charLimit.
|
protected |
References Isis::PvlKeyword::size(), Isis::toBigInt(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
protected |
References Isis::PvlKeyword::size().
Referenced by formatValue().
|
virtual |
Reimplemented from Isis::PvlFormat.
|
protected |
References Isis::PvlKeyword::size(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
inlinevirtual |
Reimplemented from Isis::PvlFormat.
|
protected |
References Isis::PvlKeyword::size(), Isis::toBigInt(), Isis::toInt(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
protected |
References Isis::PvlKeyword::size(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
virtual |
Reimplemented from Isis::PvlFormat.
References Isis::PvlKeyword::name().
|
protected |
References Isis::PvlKeyword::size(), Isis::toDouble(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
protected |
References addQuotes(), Isis::PvlKeyword::size(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
protected |
References Isis::PvlFormat::addQuotes(), Isis::PvlKeyword::size(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
virtual |
Reimplemented from Isis::PvlFormat.
References Isis::PvlFormat::accuracy(), Isis::BinaryKeyword, Isis::BoolKeyword, Isis::EnumKeyword, formatBinary(), formatBool(), formatEnum(), formatHex(), formatInteger(), formatReal(), formatString(), formatUnknown(), Isis::HexKeyword, Isis::IntegerKeyword, Isis::PvlKeyword::name(), Isis::NoTypeKeyword, Isis::RealKeyword, Isis::StringKeyword, and Isis::PvlFormat::type().
|
protectedinherited |
Returns true if the units are the same for all value in the keyword otherwise it returns false.
keyword | The PvlKeyword to be formatted |
References Isis::PvlKeyword::size(), Isis::PvlKeyword::stringEqual(), and Isis::PvlKeyword::unit().
Referenced by formatValue().
|
inlineinherited |
Sets the maximum number of characters in a keyword value that can be printed to a line before it wraps to the next line.
By default, the limit is set to 80 characters.
limit | The new character limit. |
References m_charLimit.
|
virtualinherited |
References m_keywordMap, Isis::PvlKeyword::name(), Isis::NoTypeKeyword, and Isis::toKeywordType().
Referenced by add(), and Isis::PvlFormatPds::formatValue().
|
protectedinherited |
Maximum number of characters on a single line of a keyword value.
Referenced by charLimit(), and setCharLimit().
|
protectedinherited |
Referenced by accuracy(), add(), and type().
|
protectedinherited |
Referenced by add().