Unverified Commit 4d24e8de authored by Stuart Sides's avatar Stuart Sides Committed by GitHub
Browse files

Update IsisAml.cpp

parent d409c2d5
Loading
Loading
Loading
Loading
+56 −21
Original line number Diff line number Diff line
@@ -339,8 +339,6 @@ void IsisAml::PutInteger(const QString &paramName,
}




// Public: Sets the value member of a parameter of type double whose name
// starts with paramName
/**
@@ -425,7 +423,6 @@ void IsisAml::PutDouble(const QString &paramName,
}



// Public: Sets the value member of a parameter of type boolean whose name
// starts with paramName
/**
@@ -554,6 +551,7 @@ QString IsisAml::GetAsString(const QString &paramName) const {
  return value;
}


// Public: Returns the value member of a parameter whose name starts with paramName
// as a vector<QString>
/**
@@ -678,13 +676,6 @@ void IsisAml::GetFileName(const QString &paramName,
}









/**
 * Retrieves of a value for a parameter of type "cubename".
 *
@@ -729,14 +720,6 @@ QString IsisAml::GetCubeName(const QString &paramName, QString extension) const
}










// Public: Returns the first element of the value member of a parameter whos
// name starts with paramName as a QString
/**
@@ -851,7 +834,6 @@ void IsisAml::GetString(const QString &paramName,
}



// Public: Returns the first element of the value member of a parameter whos
// name starts with paramName as an integer
/**
@@ -935,7 +917,6 @@ void IsisAml::GetInteger(const QString &paramName,
}



// Public: Returns the first element of the value member of a parameter whos
// name starts with paramName as a doubble
/**
@@ -973,6 +954,7 @@ double IsisAml::GetDouble(const QString &paramName) const {
  return value.ToDouble();
}


// Public: Returns the value member of a parameter whose name starts with paramName
// as a vector<doubble>
/**
@@ -1138,6 +1120,7 @@ QString IsisAml::Description() const {
  return description;
}


/**
 * Returns the number of groups found in the XML.
 *
@@ -1147,6 +1130,7 @@ int IsisAml::NumGroups() const {
  return groups.size();
}


/**
 * Returns the group name of group[index].
 *
@@ -1159,6 +1143,7 @@ QString IsisAml::GroupName(const int &index) const {
  return s;
}


/**
 * Given group name return its index in the Gui
 *
@@ -1177,6 +1162,7 @@ int IsisAml::GroupIndex(const QString & grpName) const {
  return -1;
}


/**
 * Create a PVL file from the parameters in a Group given the Gui group name,
 * Pvl Object and Group names and the list of parameters to be included in the
@@ -1237,6 +1223,7 @@ void IsisAml::CreatePVL(Isis::Pvl &pvlDef , QString guiGrpName, QString pvlObjNa
  }
}


/**
 * Verify if the Parameter is in the Included list
 *
@@ -1256,6 +1243,8 @@ bool IsisAml::IsParamInPvlInclude(QString & paramName, vector<QString> & include
  }
  return false;
}


/**
 * Returns the number of parameters in a group.
 *
@@ -1267,6 +1256,7 @@ int IsisAml::NumParams(const int &group) const {
  return groups[group].parameters.size();
}


/**
 * Returns the parameter name.
 *
@@ -1280,6 +1270,7 @@ QString IsisAml::ParamName(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the brief description of a parameter in a specified group.
 *
@@ -1293,6 +1284,7 @@ QString IsisAml::ParamBrief(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the long description of a parameter in a specified group.
 *
@@ -1306,6 +1298,7 @@ QString IsisAml::ParamDescription(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the minimum value of a parameter in a specified group.
 *
@@ -1319,6 +1312,7 @@ QString IsisAml::ParamMinimum(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the maximum value of a parameter in a specified group.
 *
@@ -1332,6 +1326,7 @@ QString IsisAml::ParamMaximum(const int &group, const int &param) const {
  return s;
}


/**
 * Returns whether the minimum value is inclusive or not.
 *
@@ -1345,6 +1340,7 @@ QString IsisAml::ParamMinimumInclusive(const int &group, const int &param) const
  return s;
}


/**
 * Returns whether the maximum value is inclusive or not.
 *
@@ -1358,6 +1354,7 @@ QString IsisAml::ParamMaximumInclusive(const int &group, const int &param) const
  return s;
}


/**
 * Returns whether the selected parameter has a restriction on odd values or
 * not.
@@ -1372,6 +1369,7 @@ QString IsisAml::ParamOdd(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the number of values in the parameters greater than list.
 *
@@ -1384,6 +1382,7 @@ int IsisAml::ParamGreaterThanSize(const int &group, const int &param) const {
  return groups[group].parameters[param].greaterThan.size();
}


/**
 * Returns the number of values in the parameters greater than or equal list.
 *
@@ -1397,6 +1396,7 @@ int IsisAml::ParamGreaterThanOrEqualSize(const int &group,
  return groups[group].parameters[param].greaterThanOrEqual.size();
}


/**
 * Returns the number of values in the parameters less than list.
 *
@@ -1409,6 +1409,7 @@ int IsisAml::ParamLessThanSize(const int &group, const int &param) const {
  return groups[group].parameters[param].lessThan.size();
}


/**
 * Returns the number of values in the parameters less than or equal list.
 *
@@ -1422,6 +1423,7 @@ int IsisAml::ParamLessThanOrEqualSize(const int &group,
  return groups[group].parameters[param].lessThanOrEqual.size();
}


/**
 * Returns the number of values in the not equal list.
 *
@@ -1434,6 +1436,7 @@ int IsisAml::ParamNotEqualSize(const int &group, const int &param) const {
  return groups[group].parameters[param].notEqual.size();
}


/**
 * Returns the name of the specified greaterThan parameter
 *
@@ -1449,6 +1452,7 @@ QString IsisAml::ParamGreaterThan(const int &group, const int &param,
  return s;
}


/**
 * Returns the name of the specified greaterThanOrEqual parameter
 *
@@ -1464,6 +1468,7 @@ QString IsisAml::ParamGreaterThanOrEqual(const int &group, const int &param,
  return s;
}


/**
 * Returns the name of the specified lessThan parameter
 *
@@ -1479,6 +1484,7 @@ QString IsisAml::ParamLessThan(const int &group, const int &param,
  return s;
}


/**
 * Returns the name of the specified lessThanOrEqual parameter
 *
@@ -1494,6 +1500,7 @@ QString IsisAml::ParamLessThanOrEqual(const int &group, const int &param,
  return s;
}


/**
 * Returns the name of the specified notEqual parameter
 *
@@ -1509,6 +1516,7 @@ QString IsisAml::ParamNotEqual(const int &group, const int &param,
  return s;
}


/**
 * Returns the name of the specified excluded parameter
 *
@@ -1524,6 +1532,7 @@ QString IsisAml::ParamExclude(const int &group, const int &param,
  return s;
}


/**
 * Returns the name of the specified included parameter
 *
@@ -1553,6 +1562,7 @@ QString IsisAml::ParamType(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the default for a parameter in a specified group.
 *
@@ -1572,6 +1582,7 @@ QString IsisAml::ParamDefault(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the internal default for a parameter in a specified group
 *
@@ -1591,6 +1602,7 @@ QString IsisAml::ParamInternalDefault(const int &group, const int &param) const
  return s;
}


/**
 * Returns the parameter filter for a parameter in a specified group.
 *
@@ -1610,6 +1622,7 @@ QString IsisAml::ParamFilter(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the default path for a filename/cube parameter
 *
@@ -1629,6 +1642,7 @@ QString IsisAml::ParamPath(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the file mode for a parameter in a specified group.
 *
@@ -1648,6 +1662,7 @@ QString IsisAml::ParamFileMode(const int &group, const int &param) const {
  return s;
}


/**
 * Returns the number of options in the specified parameter's list.
 *
@@ -1677,6 +1692,7 @@ QString IsisAml::ParamListValue(const int &group, const int &param,
  return s;
}


/**
 * Returns the brief description for a specific option to a parameter.
 *
@@ -1692,6 +1708,7 @@ QString IsisAml::ParamListBrief(const int &group, const int &param,
  return s;
}


/**
 * Returns the full description for a specific option to a parameter.
 *
@@ -1707,6 +1724,7 @@ QString IsisAml::ParamListDescription(const int &group, const int &param,
  return s;
}


/**
 * Returns the number of items in a parameters list exclude section.
 *
@@ -1721,6 +1739,7 @@ int IsisAml::ParamListExcludeSize(const int &group, const int &param,
  return groups[group].parameters[param].listOptions[option].exclude.size();
}


/**
 * Returns the parameter name to be excluded if this option is selected.
 *
@@ -1737,6 +1756,7 @@ QString IsisAml::ParamListExclude(const int &group, const int &param,
  return s;
}


/**
 * Returns the number of items in a parameters list include section.
 *
@@ -1751,6 +1771,7 @@ int IsisAml::ParamListIncludeSize(const int &group, const int &param,
  return groups[group].parameters[param].listOptions[option].include.size();
}


/**
 * Returns the parameter name to be included if this option is selected.
 *
@@ -1767,6 +1788,7 @@ QString IsisAml::ParamListInclude(const int &group, const int &param,
  return s;
}


/**
 * Returns the number of parameters excluded in this parameter's exclusions
 *
@@ -1779,6 +1801,7 @@ int IsisAml::ParamExcludeSize(const int &group, const int &param) const {
  return groups[group].parameters[param].exclude.size();
}


/**
 * Returns the number of parameters included in this parameter's inclusions
 *
@@ -1791,6 +1814,7 @@ int IsisAml::ParamIncludeSize(const int &group, const int &param) const {
  return groups[group].parameters[param].include.size();
}


/**
 * Returns the default pixel type from the XML
 *
@@ -1803,6 +1827,7 @@ QString IsisAml::PixelType(const int &group, const int &param) const {
  return groups[group].parameters[param].pixelType;
}


/**
 * Returns the number of helpers the parameter has
 *
@@ -1815,6 +1840,7 @@ int IsisAml::HelpersSize(const int &group, const int &param) const {
  return groups[group].parameters[param].helpers.size();
}


/**
 * Returns the name of the helper button
 *
@@ -1829,6 +1855,7 @@ QString IsisAml::HelperButtonName(const int &group, const int &param,
  return groups[group].parameters[param].helpers[helper].name;
}


/**
 * Returns the name of the helper function
 *
@@ -1843,6 +1870,7 @@ QString IsisAml::HelperFunction(const int &group, const int &param,
  return groups[group].parameters[param].helpers[helper].function;
}


/**
 * Returns the brief description of the helper button
 *
@@ -1857,6 +1885,7 @@ QString IsisAml::HelperBrief(const int &group, const int &param,
  return groups[group].parameters[param].helpers[helper].brief;
}


/**
 * Returns the long description of the helper button
 *
@@ -1871,6 +1900,7 @@ QString IsisAml::HelperDescription(const int &group, const int &param,
  return groups[group].parameters[param].helpers[helper].description;
}


/**
 * Returns the name of the icon for the helper button
 *
@@ -1885,6 +1915,7 @@ QString IsisAml::HelperIcon(const int &group, const int &param,
  return groups[group].parameters[param].helpers[helper].icon;
}


/**
 * Returns a true if the parameter has a value, and false if it does not
 *
@@ -1903,6 +1934,7 @@ bool IsisAml::WasEntered(const QString &paramName) const {
  return true;
}


/**
 * Clears the value(s) in the named parameter
 *
@@ -1965,6 +1997,7 @@ Isis::CubeAttributeInput &IsisAml::GetInputAttribute(const QString &paramName) {
  return param->inCubeAtt;
}


/**
 * Gets the attributes for an output cube
 *
@@ -2011,6 +2044,7 @@ Isis::CubeAttributeOutput &IsisAml::GetOutputAttribute(const QString &paramName)
  return param->outCubeAtt;
}


/**
 * Returns a pointer to a parameter whose name starts with paramName
 *
@@ -2063,6 +2097,7 @@ const IsisParameterData *IsisAml::ReturnParam(const QString &paramName) const {
  return param;
}


/**
 * Throws an Isis::iExceptionXxxxxxxx if the parameter value(s) is invalid
 *
@@ -2914,6 +2949,7 @@ void IsisAml::VerifyAll() {
  }
}


/**
 * Returns a boolean value based on the QString contents
 *
@@ -3136,4 +3172,3 @@ void IsisAml::StartParser(const char *xmlfile) {
  delete appHandler;
  return;
}