|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef LabelTranslationManager_h
2 #define LabelTranslationManager_h
55 virtual QString
Translate(QString translationGroupName,
int findex = 0) = 0;
58 virtual void Auto(
Pvl &outputLabel);
virtual QString Translate(QString translationGroupName, int findex=0)=0
virtual QStringList parseSpecification(QString specification) const
Parses and validates a dependency specification.
Definition: LabelTranslationManager.cpp:172
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
PvlGroup & group(const int index)
Return the group at the specified index.
Definition: PvlObject.cpp:452
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
A single keyword-value pair.
Definition: PvlKeyword.h:82
virtual PvlKeyword DoTranslation(const QString translationGroupName)
Translate the requested output name to output values using the input name and values or default value...
Definition: LabelTranslationManager.cpp:144
int groups() const
Returns the number of groups contained.
Definition: PvlObject.h:75
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 hasGroup(const QString &name) const
Returns a boolean value based on whether the object has the specified group or not.
Definition: PvlObject.h:210
Container for cube-like labels.
Definition: Pvl.h:119
void addObject(const PvlObject &object)
Add a PvlObject.
Definition: PvlObject.h:307
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
LabelTranslationManager()
Constructs a default LabelTranslationManager.
Definition: LabelTranslationManager.cpp:25
virtual PvlContainer * CreateContainer(const QString translationGroupName, Pvl &pvl)
Creates all parent PVL containers for an output keyword.
Definition: LabelTranslationManager.cpp:100
PvlKeyword OutputPosition(const QString translationGroupName)
Retrieves the OutputPosition PvlKeyword for the translation group with the given name.
Definition: PvlTranslationTable.cpp:483
Allows applications to translate simple text files.
Definition: LabelTranslationManager.h:43
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
virtual void Auto(Pvl &outputLabel)
Automatically translate all the output names tagged as Auto in the translation table If a output name...
Definition: LabelTranslationManager.cpp:70
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis exception class.
Definition: IException.h:91
bool hasObject(const QString &name) const
Returns a boolean value based on whether the object exists in the current PvlObject or not.
Definition: PvlObject.h:323
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
bool IsAuto(const QString translationGroupName)
Determines whether the given group should be automatically translated.
Definition: PvlTranslationTable.cpp:432
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
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
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
virtual ~LabelTranslationManager()
Destroys the LabelTranslationManager object.
Definition: LabelTranslationManager.cpp:56
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