|
Isis 3 Programmer Reference
|
1 #ifndef XmlToPvlTranslationManager_h
2 #define XmlToPvlTranslationManager_h
9 #include "LabelTranslationManager.h"
14 #include <QDomDocument>
17 #include "PvlTokenizer.h"
122 const QString &transFile);
125 std::istream &transStrm);
131 virtual QString
Translate(QString translationGroupName,
int findex = 0);
140 virtual std::vector< std::pair<QString, int> >
validKeywords()
const;
virtual void Auto(Pvl &outputLabel)
Automatically translate all the output names tagged as Auto in the translation table If a output name...
A single keyword-value pair.
File name manipulation and expansion.
Container for cube-like labels.
Allows applications to translate Xml label files.
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.
bool checkDependencies(QDomElement element, PvlKeyword dependencies, bool isDebug) const
Checks if a element in the xml label satisfies a list of dependencies.
XmlToPvlTranslationManager(const QString &transFile)
Constructs and initializes an XmlToPvlTranslationManager object from the given Pvl translation file.
virtual ~XmlToPvlTranslationManager()
Destroys the XmlToPvlTranslationManager object.
void parseFile(const FileName &xmlFileName)
Opens, parses, and internalizes an Xml label file.
Allows applications to translate simple text files.
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.
QDomDocument m_xmlLabel
The contents of the xml label.
This is free and unencumbered software released into the public domain.