1 #ifndef XmlToPvlTranslationManager_h 2 #define XmlToPvlTranslationManager_h 29 #include <QDomDocument> 137 const QString &transFile);
140 std::istream &transStrm);
146 virtual QString
Translate(QString translationGroupName,
int findex = 0);
155 virtual std::vector< std::pair<QString, int> >
validKeywords()
const;
QDomDocument m_xmlLabel
The contents of the xml label.
File name manipulation and expansion.
void SetLabel(FileName &inputLabel)
Reads an Xml label file and internalizes it for translation.
virtual QString Translate(QString translationGroupName, int findex=0)
Returns a translated value.
virtual void Auto(Pvl &outputLabel)
Automatically translate all the output names tagged as Auto in the translation table If a output name...
virtual std::vector< std::pair< QString, int > > validKeywords() const
Returns a vector of valid keyword names and their sizes.
A single keyword-value pair.
XmlToPvlTranslationManager(const QString &transFile)
Constructs and initializes an XmlToPvlTranslationManager object from the given Pvl translation file...
Container for cube-like labels.
void parseFile(const FileName &xmlFileName)
Opens, parses, and internalizes an Xml label file.
void Auto(FileName &inputLabel, Pvl &outputLabel)
Automatically translate all the output names flagged with the Auto keyword in the translation table a...
bool checkDependencies(QDomElement element, PvlKeyword dependencies, bool isDebug) const
Checks if a element in the xml label satisfies a list of dependencies.
Namespace for ISIS/Bullet specific routines.
virtual ~XmlToPvlTranslationManager()
Destroys the XmlToPvlTranslationManager object.
Allows applications to translate simple text files.
Allows applications to translate Xml label files.