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;
 
 
File name manipulation and expansion.
 
virtual void Auto(Pvl &outputLabel)
Automatically translate all the output names tagged as Auto in the translation table If a output name...
 
LabelTranslationManager()
Constructs a default LabelTranslationManager.
 
Contains more than one keyword-value pair.
 
Container for cube-like labels.
 
A single keyword-value pair.
 
QDomDocument m_xmlLabel
The contents of the xml label.
 
virtual std::vector< std::pair< QString, int > > validKeywords() const
Returns a vector of valid keyword names and their sizes.
 
bool checkDependencies(QDomElement element, PvlKeyword dependencies, bool isDebug) const
Checks if a element in the xml label satisfies a list of dependencies.
 
virtual QString Translate(QString translationGroupName, int findex=0)
Returns a translated value.
 
virtual ~XmlToPvlTranslationManager()
Destroys the XmlToPvlTranslationManager object.
 
void Auto(FileName &inputLabel, Pvl &outputLabel)
Automatically translate all the output names flagged with the Auto keyword in the translation table a...
 
XmlToPvlTranslationManager(const QString &transFile)
Constructs and initializes an XmlToPvlTranslationManager object from the given Pvl translation file.
 
void parseFile(const FileName &xmlFileName)
Opens, parses, and internalizes an Xml label file.
 
void SetLabel(FileName &inputLabel)
Reads an Xml label file and internalizes it for translation.
 
This is free and unencumbered software released into the public domain.