Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis Developer Reference
LabelTranslationManager.h
Go to the documentation of this file.
1#ifndef LabelTranslationManager_h
2#define LabelTranslationManager_h
7
8/* SPDX-License-Identifier: CC0-1.0 */
9#include <string>
10#include <fstream>
11
12#include "FileName.h"
13#include "PvlTranslationTable.h"
14
15namespace Isis {
16 class Pvl;
17 class PvlContainer;
18 class PvlKeyword;
43 public:
45
46 LabelTranslationManager(const QString &transFile);
47
48 LabelTranslationManager(std::istream &transStrm);
49
51
52 // Attempt to translate the requested output name to output value
53 // using the input name and value/default value
54 virtual QString Translate(QString translationGroupName, int findex = 0) = 0;
55
56 // Translate all translation table groups which contain "Auto"
57 virtual void Auto(Pvl &outputLabel);
58
59 virtual QStringList parseSpecification(QString specification) const;
60 protected:
61
62 virtual PvlKeyword DoTranslation(const QString translationGroupName);
63 virtual PvlContainer *CreateContainer(const QString translationGroupName, Pvl &pvl);
64 };
65};
66
67#endif
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
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
virtual QString Translate(QString translationGroupName, int findex=0)=0
LabelTranslationManager()
Constructs a default LabelTranslationManager.
Definition LabelTranslationManager.cpp:25
virtual QStringList parseSpecification(QString specification) const
Parses and validates a dependency specification.
Definition LabelTranslationManager.cpp:172
virtual PvlContainer * CreateContainer(const QString translationGroupName, Pvl &pvl)
Creates all parent PVL containers for an output keyword.
Definition LabelTranslationManager.cpp:100
virtual ~LabelTranslationManager()
Destroys the LabelTranslationManager object.
Definition LabelTranslationManager.cpp:56
PvlTranslationTable(FileName transFile)
Constructs and initializes a PvlTranslationTable object.
Definition PvlTranslationTable.cpp:26
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16