|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef PvlTranslationTable_h
2 #define PvlTranslationTable_h
123 QString
InputDefault(
const QString translationGroupName)
const;
126 QString
Translate(
const QString translationGroupName,
const QString inputKeyValue =
"")
const;
129 void AddTable(std::istream &transStm);
130 void AddTable(
const QString &transFile);
135 virtual std::vector< std::pair<QString, int> >
validKeywords()
const;
138 bool IsAuto(
const QString translationGroupName);
139 bool IsOptional(
const QString translationGroupName);
141 QString
OutputName(
const QString translationGroupName);
QString name() const
Returns the keyword name.
Definition: PvlKeyword.h:98
virtual std::vector< std::pair< QString, int > > validKeywords() const
Returns a vector of valid keyword names and their sizes.
Definition: PvlTranslationTable.cpp:179
virtual ~PvlTranslationTable()
Destroys the PvlTranslationTable object.
Definition: PvlTranslationTable.cpp:51
A single keyword-value pair.
Definition: PvlKeyword.h:82
QList< PvlKeyword >::const_iterator ConstPvlKeywordIterator
The const keyword iterator.
Definition: PvlContainer.h:160
File name manipulation and expansion.
Definition: FileName.h:100
QString OutputName(const QString translationGroupName)
Retrieves a string containing the value of the OutputName keyword for the translation group with the ...
Definition: PvlTranslationTable.cpp:511
Internalizes a translation table.
Definition: PvlTranslationTable.h:106
void AddTable(std::istream &transStm)
Adds the contents of a translation table to the searchable groups/keys Also performs a verification,...
Definition: PvlTranslationTable.cpp:102
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Container for cube-like labels.
Definition: Pvl.h:119
bool hasInputDefault(const QString translationGroupName)
Determines whether the given group has a default input value.
Definition: PvlTranslationTable.cpp:407
PvlTranslationTable()
Construct an empty PvlTranslationTable.
Definition: PvlTranslationTable.cpp:44
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void read(const QString &file)
Loads PVL information from a stream.
Definition: Pvl.cpp:90
PvlKeyword OutputPosition(const QString translationGroupName)
Retrieves the OutputPosition PvlKeyword for the translation group with the given name.
Definition: PvlTranslationTable.cpp:483
QString fileName() const
Returns the filename used to initialise the Pvl object.
Definition: PvlContainer.h:232
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis exception class.
Definition: IException.h:91
QString Translate(const QString translationGroupName, const QString inputKeyValue="") const
Translates a single output value from the given translation group name and input value.
Definition: PvlTranslationTable.cpp:216
virtual QString InputKeywordName(const QString translationGroupName) const
Returns the input keyword name from the translation table corresponding to the output name argument.
Definition: PvlTranslationTable.cpp:360
virtual PvlKeyword InputGroup(const QString translationGroupName, const int inst=0) const
Returns the input group name from the translation table corresponding to the output name argument.
Definition: PvlTranslationTable.cpp:285
bool IsAuto(const QString translationGroupName)
Determines whether the given group should be automatically translated.
Definition: PvlTranslationTable.cpp:432
Namespace for the standard library.
int size() const
Returns the number of values stored in this keyword.
Definition: PvlKeyword.h:125
bool IsOptional(const QString translationGroupName)
Determines whether the translation group is optional.
Definition: PvlTranslationTable.cpp:457
int keywords() const
Returns the number of keywords contained in the PvlContainer.
Definition: PvlContainer.h:86
QString InputDefault(const QString translationGroupName) const
Returns the input default value from the translation table corresponding to the output name argument.
Definition: PvlTranslationTable.cpp:382
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
PvlKeywordIterator end()
Return the ending iterator.
Definition: PvlContainer.h:194
PvlKeywordIterator begin()
Return the beginning iterator.
Definition: PvlContainer.h:178
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Pvl & TranslationTable()
Protected accessor for pvl translation table passed into class.
Definition: PvlTranslationTable.cpp:62
const PvlGroup & findTranslationGroup(const QString translationGroupName) const
Searches for translation group with the given name.
Definition: PvlTranslationTable.cpp:538