|
Isis 3 Programmer Reference
|
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);
virtual std::vector< std::pair< QString, int > > validKeywords() const
Returns a vector of valid keyword names and their sizes.
virtual ~PvlTranslationTable()
Destroys the PvlTranslationTable object.
A single keyword-value pair.
File name manipulation and expansion.
QString OutputName(const QString translationGroupName)
Retrieves a string containing the value of the OutputName keyword for the translation group with the ...
Internalizes a translation table.
void AddTable(std::istream &transStm)
Adds the contents of a translation table to the searchable groups/keys Also performs a verification,...
Container for cube-like labels.
bool hasInputDefault(const QString translationGroupName)
Determines whether the given group has a default input value.
PvlTranslationTable()
Construct an empty PvlTranslationTable.
Contains multiple PvlContainers.
PvlKeyword OutputPosition(const QString translationGroupName)
Retrieves the OutputPosition PvlKeyword for the translation group with the given name.
QString Translate(const QString translationGroupName, const QString inputKeyValue="") const
Translates a single output value from the given translation group name and input value.
virtual QString InputKeywordName(const QString translationGroupName) const
Returns the input keyword name from the translation table corresponding to the output name argument.
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.
bool IsAuto(const QString translationGroupName)
Determines whether the given group should be automatically translated.
bool IsOptional(const QString translationGroupName)
Determines whether the translation group is optional.
QString InputDefault(const QString translationGroupName) const
Returns the input default value from the translation table corresponding to the output name argument.
This is free and unencumbered software released into the public domain.
Pvl & TranslationTable()
Protected accessor for pvl translation table passed into class.
const PvlGroup & findTranslationGroup(const QString translationGroupName) const
Searches for translation group with the given name.