|
Isis 3 Programmer Reference
|
16 #include <xercesc/sax2/SAX2XMLReader.hpp>
18 #include "IsisXMLApplication.h"
19 #include "IsisAmlData.h"
143 IsisAml(
const QString &xmlfile);
151 void PutAsString(
const QString ¶mName,
const QString &value);
152 void PutAsString(
const QString ¶mName,
const std::vector<QString> &value);
154 void PutFileName(
const QString ¶mName,
const QString &value);
155 void PutFileName(
const QString ¶mName,
const std::vector<QString> &value);
157 void PutDouble(
const QString ¶mName,
const double &value);
158 void PutDouble(
const QString ¶mName,
const std::vector<double> &value);
160 void PutInteger(
const QString ¶mName,
const int &value);
161 void PutInteger(
const QString ¶mName,
const std::vector<int> &value);
163 void PutBoolean(
const QString ¶mName,
const bool &value);
164 void PutBoolean(
const QString ¶mName,
const std::vector<bool> &value);
166 void PutString(
const QString ¶mName,
const QString &value);
167 void PutString(
const QString ¶mName,
const std::vector<QString> &value);
169 QString
GetAsString(
const QString ¶mName)
const;
170 void GetAsString(
const QString ¶mName, std::vector<QString> &values)
const;
172 QString
GetFileName(
const QString ¶mName, QString extension =
"")
const;
173 void GetFileName(
const QString ¶mName, std::vector<QString> &values)
const;
175 QString
GetString(
const QString ¶mName)
const;
176 void GetString(
const QString ¶mName, std::vector<QString> &values)
const;
178 int GetInteger(
const QString ¶mName)
const;
179 void GetInteger(
const QString ¶mName, std::vector<int> &values)
const;
181 bool GetBoolean(
const QString ¶mName)
const;
183 void GetBoolean(
const QString ¶mName, std::vector<bool> &values)
const;
185 double GetDouble(
const QString ¶mName)
const;
186 void GetDouble(
const QString ¶mName, std::vector<double> &values)
const;
188 bool WasEntered(
const QString ¶mName)
const;
189 void Clear(
const QString ¶mName);
197 QString
Brief()
const;
205 QString
GroupName(
const int &group)
const;
208 int GroupIndex(
const QString & grpName)
const;
212 QString
ParamName(
const int &group,
const int ¶m)
const;
214 QString
ParamType(
const int &group,
const int ¶m)
const;
216 QString
ParamBrief(
const int &group,
const int ¶m)
const;
220 QString
ParamMinimum(
const int &group,
const int ¶m)
const;
224 QString
ParamMaximum(
const int &group,
const int ¶m)
const;
228 QString
ParamOdd(
const int &group,
const int ¶m)
const;
241 const int &great)
const;
244 const int &great)
const;
247 const int &great)
const;
250 const int &les)
const;
253 const int ¬Eq)
const;
258 const int &option)
const;
261 const int &option)
const;
264 const int &option)
const;
267 const int &option)
const;
270 const int &option,
const int &exclude)
const;
273 const int &option)
const;
276 const int &option,
const int &include)
const;
278 QString
ParamDefault(
const int &group,
const int ¶m)
const;
282 QString
ParamFilter(
const int &group,
const int ¶m)
const;
284 QString
ParamPath(
const int &group,
const int ¶m)
const;
286 QString
ParamFileMode(
const int &group,
const int ¶m)
const;
290 QString
ParamExclude(
const int &group,
const int ¶m,
291 const int &exclude)
const;
294 QString
ParamInclude(
const int &group,
const int ¶m,
295 const int &include)
const;
297 QString
PixelType(
const int &group,
const int ¶m)
const;
299 int HelpersSize(
const int &group,
const int ¶m)
const;
302 const int &helper)
const;
305 const int &helper)
const;
307 QString
HelperBrief(
const int &group,
const int ¶m,
308 const int &helper)
const;
311 const int &helper)
const;
313 QString
HelperIcon(
const int &group,
const int ¶m,
314 const int &helper)
const;
322 QString pvlGrpName, std::vector<QString> & exclude);
QString HelperIcon(const int &group, const int ¶m, const int &helper) const
Returns the name of the icon for the helper button.
Isis::CubeAttributeOutput & GetOutputAttribute(const QString ¶mName)
Gets the attributes for an output cube.
This is free and unencumbered software released into the public domain.
void PutAsString(const QString ¶mName, const QString &value)
Allows the insertion of a value for any parameter.
void PutFileName(const QString ¶mName, const QString &value)
Allows the insertion of a value for a parameter of type "filename".
int ParamListSize(const int &group, const int ¶m) const
Returns the number of options in the specified parameter's list.
QString HelperDescription(const int &group, const int ¶m, const int &helper) const
Returns the long description of the helper button.
void CheckFileNamePreference(QString filename, QString paramname)
This method checks whether the user preferences are set to allow overwrites of existing files.
XERCES::SAX2XMLReader * parser
The XML file parser.
QString GetAsString(const QString ¶mName) const
Allows the retrieval of a value for a parameter of any type.
QString ParamListValue(const int &group, const int ¶m, const int &option) const
Returns the option value for a specific option to a parameter.
int NumGroups() const
Returns the number of groups found in the XML.
QString ParamMinimumInclusive(const int &group, const int ¶m) const
Returns whether the minimum value is inclusive or not.
IsisXMLApplication * appHandler
The application handler.
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.
QString ParamBrief(const int &group, const int ¶m) const
Returns the brief description of a parameter in a specified group.
QString ParamGreaterThanOrEqual(const int &group, const int ¶m, const int &great) const
Returns the name of the specified greaterThanOrEqual parameter.
int HelpersSize(const int &group, const int ¶m) const
Returns the number of helpers the parameter has.
QString GetFileName(const QString ¶mName, QString extension="") const
Allows the retrieval of a value for a parameter of type "filename".
double GetDouble(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "double".
void PutString(const QString ¶mName, const QString &value)
Allows the insertion of a value for any parameter.
QString ParamMaximum(const int &group, const int ¶m) const
Returns the maximum value of a parameter in a specified group.
Container for cube-like labels.
Manipulate and parse attributes of output cube filenames.
QString HelperFunction(const int &group, const int ¶m, const int &helper) const
Returns the name of the helper function.
void PutBoolean(const QString ¶mName, const bool &value)
Allows the insertion of a value for a parameter of type "boolean".
QString ParamListDescription(const int &group, const int ¶m, const int &option) const
Returns the full description for a specific option to a parameter.
void StartParser(const char *xmlfile)
Starts parsing an application xml file.
QString ParamGreaterThan(const int &group, const int ¶m, const int &great) const
Returns the name of the specified greaterThan parameter.
QString ParamDefault(const int &group, const int ¶m) const
Returns the default for a parameter in a specified group.
bool IsParamInPvlInclude(QString ¶mName, std::vector< QString > &exclude)
Verify whether Parameter name is in the Include list Used in creation of DefFile.
QString ParamListBrief(const int &group, const int ¶m, const int &option) const
Returns the brief description for a specific option to a parameter.
Isis::CubeAttributeInput & GetInputAttribute(const QString ¶mName)
Gets the attributes for an input cube.
int ParamIncludeSize(const int &group, const int ¶m) const
Returns the number of parameters included in this parameter's inclusions.
QString ParamType(const int &group, const int ¶m) const
Returns the parameter type of a parameter in a specified group.
QString ParamInternalDefault(const int &group, const int ¶m) const
Returns the internal default for a parameter in a specified group.
int ParamListExcludeSize(const int &group, const int ¶m, const int &option) const
Returns the number of items in a parameters list exclude section.
QString ParamPath(const int &group, const int ¶m) const
Returns the default path for a filename/cube parameter.
bool GetBoolean(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "boolean".
QString GroupName(const int &group) const
Returns the group name of group[index].
void VerifyAll()
Verify all parameters.
int ParamNotEqualSize(const int &group, const int ¶m) const
Returns the number of values in the not equal list.
int GroupIndex(const QString &grpName) const
Given the group name get its index in group array.
QString HelperBrief(const int &group, const int ¶m, const int &helper) const
Returns the brief description of the helper button.
IsisAml(const QString &xmlfile)
Constructs an IsisAml object and internalizes the XML data in the given file name.
~IsisAml()
Destructs an IsisAml object.
Application program XML file parameter manager.
QString ParamDescription(const int &group, const int ¶m) const
Returns the long description of a parameter in a specified group.
QString ParamExclude(const int &group, const int ¶m, const int &exclude) const
Returns the name of the specified excluded parameter.
QString ParamFileMode(const int &group, const int ¶m) const
Returns the file mode for a parameter in a specified group.
QString ParamNotEqual(const int &group, const int ¶m, const int ¬Eq) const
Returns the name of the specified notEqual parameter.
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.
QString ParamMinimum(const int &group, const int ¶m) const
Returns the minimum value of a parameter in a specified group.
int ParamExcludeSize(const int &group, const int ¶m) const
Returns the number of parameters excluded in this parameter's exclusions.
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.
QString ParamInclude(const int &group, const int ¶m, const int &include) const
Returns the name of the specified included parameter.
const IsisParameterData * ReturnParam(const QString ¶mName) const
Returns a pointer to a parameter whose name starts with paramName.
QString PixelType(const int &group, const int ¶m) const
Returns the default pixel type from the XML.
int ParamGreaterThanOrEqualSize(const int &group, const int ¶m) const
Returns the number of values in the parameters greater than or equal list.
int ParamGreaterThanSize(const int &group, const int ¶m) const
Returns the number of values in the parameters greater than list.
QString ParamLessThan(const int &group, const int ¶m, const int &great) const
Returns the name of the specified lessThan parameter.
QString Version() const
Returns the application version date.
bool StringToBool(QString value) const
Returns a boolean value based on the QString contents.
int ParamListIncludeSize(const int &group, const int ¶m, const int &option) const
Returns the number of items in a parameters list include section.
void Clear(const QString ¶mName)
Clears the value(s) in the named parameter.
bool WasEntered(const QString ¶mName) const
Returns a true if the parameter has a value, and false if it does not.
int ParamLessThanSize(const int &group, const int ¶m) const
Returns the number of values in the parameters less than list.
QString Brief() const
Returns the brief description of the program.
int GetInteger(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "integer".
int ParamLessThanOrEqualSize(const int &group, const int ¶m) const
Returns the number of values in the parameters less than or equal list.
QString Description() const
Returns the full description of the program.
QString GetString(const QString ¶mName) const
Allows the retrieval of a value for a parameter of type "string".
QString HelperButtonName(const int &group, const int ¶m, const int &helper) const
Returns the name of the helper button.
void CommandLine(Isis::Pvl &lab) const
Creates a QString which could be used as a command line.
void PutInteger(const QString ¶mName, const int &value)
Allows the insertion of a value for a parameter of type "integer".
QString ParamLessThanOrEqual(const int &group, const int ¶m, const int &les) const
Returns the name of the specified lessThanOrEqual parameter.
void PutDouble(const QString ¶mName, const double &value)
Allows the insertion of a value for a parameter of type "double".
QString ParamFilter(const int &group, const int ¶m) const
Returns the parameter filter for a parameter in a specified group.
void Verify(const IsisParameterData *param)
Throws an Isis::iExceptionXxxxxxxx if the parameter value(s) is invalid.
QString ParamMaximumInclusive(const int &group, const int ¶m) const
Returns whether the maximum value is inclusive or not.
QString ProgramName() const
Returns the Program name.
QString ParamOdd(const int &group, const int ¶m) const
Returns whether the selected parameter has a restriction on odd values or not.
QString ParamName(const int &group, const int ¶m) const
Returns the parameter name.
int NumParams(const int &) const
Returns the number of parameters in a group.