1#ifndef PvlToPvlTranslationManager_h
2#define PvlToPvlTranslationManager_h
9#include "LabelTranslationManager.h"
71 const QString &transFile);
74 std::istream &transStrm);
80 virtual QString
Translate(QString translationGroupName,
int findex = 0);
83 void Auto(Pvl &outputLabel);
84 void Auto(Pvl &inputLabel, Pvl &outputLabel);
87 virtual const PvlKeyword &
InputKeyword(
const QString translationGroupName)
const;
92 void SetLabel(Pvl &inputLabel);
95 virtual PvlKeyword
DoTranslation(
const QString translationGroupName);
96 virtual const PvlContainer *
GetContainer(
const PvlKeyword &inputGroup)
const;
97 virtual PvlContainer *
CreateContainer(
const QString translationGroupName, Pvl &pvl);
LabelTranslationManager()
Constructs a default LabelTranslationManager.
virtual PvlContainer * CreateContainer(const QString translationGroupName, Pvl &pvl)
Create the requsted container and any containers above it and return a reference to the container.
virtual ~PvlToPvlTranslationManager()
Destroys the TranslationManager object.
virtual PvlKeyword DoTranslation(const QString translationGroupName)
Translate the requested output name to output values using the input name and values or default value...
virtual const PvlKeyword & InputKeyword(const QString translationGroupName) const
Returns the ith input value associated with the output name argument.
Pvl p_fLabel
A Pvl object for the input label file.
virtual const PvlContainer * GetContainer(const PvlKeyword &inputGroup) const
Return a container from the input label according tund.
virtual QString Translate(QString translationGroupName, int findex=0)
Returns a translated value.
virtual bool InputHasKeyword(const QString translationGroupName)
Indicates if the input keyword corresponding to the output name exists in the label.
PvlToPvlTranslationManager(const QString &transFile)
Constructs and initializes a TranslationManager object from given the Pvl translation file.
void Auto(Pvl &outputLabel)
Automatically translate all the output names found in the translation table If a output name does not...
This is free and unencumbered software released into the public domain.