32 #include <xercesc/sax2/SAX2XMLReader.hpp> 159 IsisAml(
const QString &xmlfile);
167 void PutAsString(
const QString ¶mName,
const QString &value);
168 void PutAsString(
const QString ¶mName,
const std::vector<QString> &value);
170 void PutFileName(
const QString ¶mName,
const QString &value);
171 void PutFileName(
const QString ¶mName,
const std::vector<QString> &value);
173 void PutDouble(
const QString ¶mName,
const double &value);
174 void PutDouble(
const QString ¶mName,
const std::vector<double> &value);
176 void PutInteger(
const QString ¶mName,
const int &value);
177 void PutInteger(
const QString ¶mName,
const std::vector<int> &value);
179 void PutBoolean(
const QString ¶mName,
const bool &value);
180 void PutBoolean(
const QString ¶mName,
const std::vector<bool> &value);
182 void PutString(
const QString ¶mName,
const QString &value);
183 void PutString(
const QString ¶mName,
const std::vector<QString> &value);
185 QString
GetAsString(
const QString ¶mName)
const;
186 void GetAsString(
const QString ¶mName, std::vector<QString> &values)
const;
188 QString
GetFileName(
const QString ¶mName, QString extension =
"")
const;
189 void GetFileName(
const QString ¶mName, std::vector<QString> &values)
const;
191 QString
GetString(
const QString ¶mName)
const;
192 void GetString(
const QString ¶mName, std::vector<QString> &values)
const;
194 int GetInteger(
const QString ¶mName)
const;
195 void GetInteger(
const QString ¶mName, std::vector<int> &values)
const;
197 bool GetBoolean(
const QString ¶mName)
const;
199 void GetBoolean(
const QString ¶mName, std::vector<bool> &values)
const;
201 double GetDouble(
const QString ¶mName)
const;
202 void GetDouble(
const QString ¶mName, std::vector<double> &values)
const;
204 bool WasEntered(
const QString ¶mName)
const;
205 void Clear(
const QString ¶mName);
213 QString
Brief()
const;
221 QString
GroupName(
const int &group)
const;
224 int GroupIndex(
const QString & grpName)
const;
228 QString
ParamName(
const int &group,
const int ¶m)
const;
230 QString
ParamType(
const int &group,
const int ¶m)
const;
232 QString
ParamBrief(
const int &group,
const int ¶m)
const;
236 QString
ParamMinimum(
const int &group,
const int ¶m)
const;
240 QString
ParamMaximum(
const int &group,
const int ¶m)
const;
244 QString
ParamOdd(
const int &group,
const int ¶m)
const;
257 const int &great)
const;
260 const int &great)
const;
263 const int &great)
const;
266 const int &les)
const;
269 const int ¬Eq)
const;
274 const int &option)
const;
277 const int &option)
const;
280 const int &option)
const;
283 const int &option)
const;
286 const int &option,
const int &exclude)
const;
289 const int &option)
const;
292 const int &option,
const int &include)
const;
294 QString
ParamDefault(
const int &group,
const int ¶m)
const;
298 QString
ParamFilter(
const int &group,
const int ¶m)
const;
300 QString
ParamPath(
const int &group,
const int ¶m)
const;
302 QString
ParamFileMode(
const int &group,
const int ¶m)
const;
306 QString
ParamExclude(
const int &group,
const int ¶m,
307 const int &exclude)
const;
310 QString
ParamInclude(
const int &group,
const int ¶m,
311 const int &include)
const;
313 QString
PixelType(
const int &group,
const int ¶m)
const;
315 int HelpersSize(
const int &group,
const int ¶m)
const;
318 const int &helper)
const;
321 const int &helper)
const;
323 QString
HelperBrief(
const int &group,
const int ¶m,
324 const int &helper)
const;
327 const int &helper)
const;
329 QString
HelperIcon(
const int &group,
const int ¶m,
330 const int &helper)
const;
338 QString pvlGrpName, std::vector<QString> & exclude);
int NumParams(const int &) const
Returns the number of parameters in a group.
QString ParamListBrief(const int &group, const int ¶m, const int &option) const
Returns the brief description for a specific option to a parameter.
int ParamLessThanOrEqualSize(const int &group, const int ¶m) const
Returns the number of values in the parameters less than or equal list.
QString ProgramName() const
Returns the Program name.
QString GetFileName(const QString ¶mName, QString extension="") const
Allows the retrieval of a value for a parameter of type "filename".
int NumGroups() const
Returns the number of groups found in the XML.
bool IsParamInPvlInclude(QString ¶mName, std::vector< QString > &exclude)
Verify whether Parameter name is in the Include list Used in creation of DefFile. ...
int ParamListSize(const int &group, const int ¶m) const
Returns the number of options in the specified parameter's list.
int ParamGreaterThanSize(const int &group, const int ¶m) const
Returns the number of values in the parameters greater than list.
int HelpersSize(const int &group, const int ¶m) const
Returns the number of helpers the parameter has.
bool StringToBool(QString value) const
Returns a boolean value based on the QString contents.
int ParamListExcludeSize(const int &group, const int ¶m, const int &option) const
Returns the number of items in a parameters list exclude section.
QString Description() const
Returns the full description of the program.
QString ParamMaximum(const int &group, const int ¶m) const
Returns the maximum value of a parameter in a specified group.
IsisAml(const QString &xmlfile)
Constructs an IsisAml object and internalizes the XML data in the given file name.
QString GetAsString(const QString ¶mName) const
Allows the retrieval of a value for a parameter of any type.
void PutAsString(const QString ¶mName, const QString &value)
Allows the insertion of a value for any parameter.
void CreatePVL(Isis::Pvl &pvlDef, QString guiGrpName, QString pvlObjName, QString pvlGrpName, std::vector< QString > &exclude)
Create Pvl with the parameters in a user defined group given the Pvl object and group name...
bool GetBoolean(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "boolean".
int ParamIncludeSize(const int &group, const int ¶m) const
Returns the number of parameters included in this parameter's inclusions.
void PutInteger(const QString ¶mName, const int &value)
Allows the insertion of a value for a parameter of type "integer".
const IsisParameterData * ReturnParam(const QString ¶mName) const
Returns a pointer to a parameter whose name starts with paramName.
QString ParamType(const int &group, const int ¶m) const
Returns the parameter type of a parameter in a specified group.
QString Version() const
Returns the application version date.
int ParamListIncludeSize(const int &group, const int ¶m, const int &option) const
Returns the number of items in a parameters list include section.
QString GroupName(const int &group) const
Returns the group name of group[index].
void StartParser(const char *xmlfile)
Starts parsing an application xml file.
QString ParamInternalDefault(const int &group, const int ¶m) const
Returns the internal default for a parameter in a specified group.
QString PixelType(const int &group, const int ¶m) const
Returns the default pixel type from the XML.
QString ParamListExclude(const int &group, const int ¶m, const int &option, const int &exclude) const
Returns the parameter name to be excluded if this option is selected.
XERCES::SAX2XMLReader * parser
The XML file parser.
QString ParamGreaterThanOrEqual(const int &group, const int ¶m, const int &great) const
Returns the name of the specified greaterThanOrEqual parameter.
QString ParamNotEqual(const int &group, const int ¶m, const int ¬Eq) const
Returns the name of the specified notEqual parameter.
QString HelperButtonName(const int &group, const int ¶m, const int &helper) const
Returns the name of the helper button.
QString ParamOdd(const int &group, const int ¶m) const
Returns whether the selected parameter has a restriction on odd values or not.
QString Brief() const
Returns the brief description of the program.
QString ParamListInclude(const int &group, const int ¶m, const int &option, const int &include) const
Returns the parameter name to be included if this option is selected.
void PutBoolean(const QString ¶mName, const bool &value)
Allows the insertion of a value for a parameter of type "boolean".
QString ParamPath(const int &group, const int ¶m) const
Returns the default path for a filename/cube parameter.
QString HelperDescription(const int &group, const int ¶m, const int &helper) const
Returns the long description of the helper button.
void PutFileName(const QString ¶mName, const QString &value)
Allows the insertion of a value for a parameter of type "filename".
Manipulate and parse attributes of output cube filenames.
void PutString(const QString ¶mName, const QString &value)
Allows the insertion of a value for any parameter.
QString ParamFilter(const int &group, const int ¶m) const
Returns the parameter filter for a parameter in a specified group.
QString HelperFunction(const int &group, const int ¶m, const int &helper) const
Returns the name of the helper function.
Isis::CubeAttributeInput & GetInputAttribute(const QString ¶mName)
Gets the attributes for an input cube.
double GetDouble(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "double".
int ParamLessThanSize(const int &group, const int ¶m) const
Returns the number of values in the parameters less than list.
void Clear(const QString ¶mName)
Clears the value(s) in the named parameter.
void Verify(const IsisParameterData *param)
Throws an Isis::iExceptionXxxxxxxx if the parameter value(s) is invalid.
void CommandLine(Isis::Pvl &lab) const
Creates a QString which could be used as a command line.
Container for cube-like labels.
~IsisAml()
Destructs an IsisAml object.
QString ParamMaximumInclusive(const int &group, const int ¶m) const
Returns whether the maximum value is inclusive or not.
QString ParamMinimum(const int &group, const int ¶m) const
Returns the minimum value of a parameter in a specified group.
int GroupIndex(const QString &grpName) const
Given the group name get its index in group array.
Application program XML file parameter manager.
int GetInteger(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "integer".
Isis::CubeAttributeOutput & GetOutputAttribute(const QString ¶mName)
Gets the attributes for an output cube.
IsisXMLApplication * appHandler
The application handler.
int ParamExcludeSize(const int &group, const int ¶m) const
Returns the number of parameters excluded in this parameter's exclusions.
int ParamGreaterThanOrEqualSize(const int &group, const int ¶m) const
Returns the number of values in the parameters greater than or equal list.
QString ParamFileMode(const int &group, const int ¶m) const
Returns the file mode for a parameter in a specified group.
void VerifyAll()
Verify all parameters.
QString ParamDefault(const int &group, const int ¶m) const
Returns the default for a parameter in a specified group.
QString ParamListDescription(const int &group, const int ¶m, const int &option) const
Returns the full description for a specific option to a parameter.
QString ParamLessThanOrEqual(const int &group, const int ¶m, const int &les) const
Returns the name of the specified lessThanOrEqual parameter.
QString ParamMinimumInclusive(const int &group, const int ¶m) const
Returns whether the minimum value is inclusive or not.
void CheckFileNamePreference(QString filename, QString paramname)
This method checks whether the user preferences are set to allow overwrites of existing files...
QString ParamBrief(const int &group, const int ¶m) const
Returns the brief description of a parameter in a specified group.
QString ParamGreaterThan(const int &group, const int ¶m, const int &great) const
Returns the name of the specified greaterThan parameter.
QString ParamName(const int &group, const int ¶m) const
Returns the parameter name.
QString ParamDescription(const int &group, const int ¶m) const
Returns the long description of a parameter in a specified group.
QString ParamLessThan(const int &group, const int ¶m, const int &great) const
Returns the name of the specified lessThan parameter.
QString GetString(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "string".
QString ParamListValue(const int &group, const int ¶m, const int &option) const
Returns the option value for a specific option to a parameter.
QString ParamExclude(const int &group, const int ¶m, const int &exclude) const
Returns the name of the specified excluded parameter.
void PutDouble(const QString ¶mName, const double &value)
Allows the insertion of a value for a parameter of type "double".
bool WasEntered(const QString ¶mName) const
Returns a true if the parameter has a value, and false if it does not.
int ParamNotEqualSize(const int &group, const int ¶m) const
Returns the number of values in the not equal list.
QString ParamInclude(const int &group, const int ¶m, const int &include) const
Returns the name of the specified included parameter.
QString HelperBrief(const int &group, const int ¶m, const int &helper) const
Returns the brief description of the helper button.
QString HelperIcon(const int &group, const int ¶m, const int &helper) const
Returns the name of the icon for the helper button.