Loading isis/src/base/objs/ProcessImportPds/ProcessImportPds.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -807,7 +807,8 @@ namespace Isis { // Use the name supplied by the application if it is there if (pdsDataFile.length() > 0) { ProcessDataFilePointer(pdsXlater, false); SetInputFile(pdsDataFile); ProcessDataFilePointer(pdsXlater, true); } // If the data is in JPEG 2000 format, then use the name of the file // from the label Loading isis/src/base/objs/ProcessImportPds/ProcessImportPds.h +1 −3 Original line number Diff line number Diff line Loading @@ -223,8 +223,6 @@ namespace Isis { * the default projection offsets and multipliers. Fixes #4887. * @history 2017-12-20 Summer Stapleton - Modified error message in * ProcessImportPds::ProcessLabel() to be more discriptive. Fixes #4883. * @history 2018-01-10 Christopher Combs - Changed ProcessDataFilePointer call to reflect * reflect changes made to voy2isis. Fixes #4345, #4421. * */ class ProcessImportPds : public ProcessImport { Loading isis/src/base/objs/PvlToPvlTranslationManager/PvlToPvlTranslationManager.cpp +28 −39 Original line number Diff line number Diff line Loading @@ -148,32 +148,21 @@ namespace Isis { PvlKeyword key; int inst = 0; PvlGroup transGroup; PvlKeyword grp; while((grp = InputGroup(nName, inst++)).name() != "") { if((con = GetContainer(grp)) != NULL) { transGroup = TranslationTable().findGroup(nName); Pvl::ConstPvlKeywordIterator it = transGroup.findKeyword("InputKey", transGroup.begin(), transGroup.end()); // Loop through potential InputKeys in the translation file group currently beginning // translated. while(it != transGroup.end()) { const PvlKeyword &result = *it; if(con->hasKeyword(result[0])) { if(con->hasKeyword(InputKeywordName(nName))) { key.setName(OutputName(nName)); for(int v = 0; v < (*con)[(result[0])].size(); v++) { for(int v = 0; v < (*con)[(InputKeywordName(nName))].size(); v++) { key.addValue(PvlTranslationTable::Translate(nName, (*con)[result[0]][v]), (*con)[result[0]].unit(v)); (*con)[InputKeywordName(nName)][v]), (*con)[InputKeywordName(nName)].unit(v)); } return key; } it = transGroup.findKeyword("InputKey", it + 1, transGroup.end()); } } } Loading Loading @@ -220,7 +209,7 @@ namespace Isis { /** * Returns the ith input value associated with the output name argument. * Returns the ith input value assiciated with the output name argument. * * @param nName The output name used to identify the input keyword. * Loading isis/src/base/objs/PvlToPvlTranslationManager/PvlToPvlTranslationManager.h +0 −2 Original line number Diff line number Diff line Loading @@ -75,8 +75,6 @@ namespace Isis { * parent class, LabelTranslationManager. Fixes #4584. * @history 2017-06-13 Adam Paquette - Changed PvlTranslationManager file name to * PvlToPvlTranslationManager. Fixes #4901. * @history 2018-01-11 Christopher Combs - Changed ProcessDataFilePointer call to reflect * reflect changes made to voy2isis. Fixes #4345, #4421. * @todo 2005-02-15 Stuart Sides - add coded example and implementation example * to class documentation, and finish * documentation Loading isis/src/base/objs/PvlTranslationTable/PvlTranslationTable.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -241,7 +241,7 @@ namespace Isis { const PvlKeyword &key = *it; // compare the value from the input file to the second value of each Translation in the trans file. // ignore cases for input values if((QString) key[1] == tmpFValue) { if(QString::compare((QString) key[1], tmpFValue, Qt::CaseInsensitive) == 0) { return key[0]; } else if((QString) key[1] == "*") { Loading Loading
isis/src/base/objs/ProcessImportPds/ProcessImportPds.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -807,7 +807,8 @@ namespace Isis { // Use the name supplied by the application if it is there if (pdsDataFile.length() > 0) { ProcessDataFilePointer(pdsXlater, false); SetInputFile(pdsDataFile); ProcessDataFilePointer(pdsXlater, true); } // If the data is in JPEG 2000 format, then use the name of the file // from the label Loading
isis/src/base/objs/ProcessImportPds/ProcessImportPds.h +1 −3 Original line number Diff line number Diff line Loading @@ -223,8 +223,6 @@ namespace Isis { * the default projection offsets and multipliers. Fixes #4887. * @history 2017-12-20 Summer Stapleton - Modified error message in * ProcessImportPds::ProcessLabel() to be more discriptive. Fixes #4883. * @history 2018-01-10 Christopher Combs - Changed ProcessDataFilePointer call to reflect * reflect changes made to voy2isis. Fixes #4345, #4421. * */ class ProcessImportPds : public ProcessImport { Loading
isis/src/base/objs/PvlToPvlTranslationManager/PvlToPvlTranslationManager.cpp +28 −39 Original line number Diff line number Diff line Loading @@ -148,32 +148,21 @@ namespace Isis { PvlKeyword key; int inst = 0; PvlGroup transGroup; PvlKeyword grp; while((grp = InputGroup(nName, inst++)).name() != "") { if((con = GetContainer(grp)) != NULL) { transGroup = TranslationTable().findGroup(nName); Pvl::ConstPvlKeywordIterator it = transGroup.findKeyword("InputKey", transGroup.begin(), transGroup.end()); // Loop through potential InputKeys in the translation file group currently beginning // translated. while(it != transGroup.end()) { const PvlKeyword &result = *it; if(con->hasKeyword(result[0])) { if(con->hasKeyword(InputKeywordName(nName))) { key.setName(OutputName(nName)); for(int v = 0; v < (*con)[(result[0])].size(); v++) { for(int v = 0; v < (*con)[(InputKeywordName(nName))].size(); v++) { key.addValue(PvlTranslationTable::Translate(nName, (*con)[result[0]][v]), (*con)[result[0]].unit(v)); (*con)[InputKeywordName(nName)][v]), (*con)[InputKeywordName(nName)].unit(v)); } return key; } it = transGroup.findKeyword("InputKey", it + 1, transGroup.end()); } } } Loading Loading @@ -220,7 +209,7 @@ namespace Isis { /** * Returns the ith input value associated with the output name argument. * Returns the ith input value assiciated with the output name argument. * * @param nName The output name used to identify the input keyword. * Loading
isis/src/base/objs/PvlToPvlTranslationManager/PvlToPvlTranslationManager.h +0 −2 Original line number Diff line number Diff line Loading @@ -75,8 +75,6 @@ namespace Isis { * parent class, LabelTranslationManager. Fixes #4584. * @history 2017-06-13 Adam Paquette - Changed PvlTranslationManager file name to * PvlToPvlTranslationManager. Fixes #4901. * @history 2018-01-11 Christopher Combs - Changed ProcessDataFilePointer call to reflect * reflect changes made to voy2isis. Fixes #4345, #4421. * @todo 2005-02-15 Stuart Sides - add coded example and implementation example * to class documentation, and finish * documentation Loading
isis/src/base/objs/PvlTranslationTable/PvlTranslationTable.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -241,7 +241,7 @@ namespace Isis { const PvlKeyword &key = *it; // compare the value from the input file to the second value of each Translation in the trans file. // ignore cases for input values if((QString) key[1] == tmpFValue) { if(QString::compare((QString) key[1], tmpFValue, Qt::CaseInsensitive) == 0) { return key[0]; } else if((QString) key[1] == "*") { Loading