![]() |
Isis 3 Programmer Reference
|
Application program XML file parameter manager. More...
#include <IsisAml.h>
Public Member Functions | |
IsisAml (const QString &xmlfile) | |
Constructs an IsisAml object and internalizes the XML data in the given file name. More... | |
~IsisAml () | |
Destructs an IsisAml object. More... | |
void | PutAsString (const QString ¶mName, const QString &value) |
Allows the insertion of a value for any parameter. More... | |
void | PutAsString (const QString ¶mName, const std::vector< QString > &value) |
void | PutFileName (const QString ¶mName, const QString &value) |
Allows the insertion of a value for a parameter of type "filename". More... | |
void | PutFileName (const QString ¶mName, const std::vector< QString > &value) |
void | PutDouble (const QString ¶mName, const double &value) |
Allows the insertion of a value for a parameter of type "double". More... | |
void | PutDouble (const QString ¶mName, const std::vector< double > &value) |
void | PutInteger (const QString ¶mName, const int &value) |
Allows the insertion of a value for a parameter of type "integer". More... | |
void | PutInteger (const QString ¶mName, const std::vector< int > &value) |
void | PutBoolean (const QString ¶mName, const bool &value) |
Allows the insertion of a value for a parameter of type "boolean". More... | |
void | PutBoolean (const QString ¶mName, const std::vector< bool > &value) |
void | PutString (const QString ¶mName, const QString &value) |
Allows the insertion of a value for any parameter. More... | |
void | PutString (const QString ¶mName, const std::vector< QString > &value) |
QString | GetAsString (const QString ¶mName) const |
Allows the retrieval of a value for a parameter of any type. More... | |
void | GetAsString (const QString ¶mName, std::vector< QString > &values) const |
QString | GetFileName (const QString ¶mName, QString extension="") const |
Allows the retrieval of a value for a parameter of type "filename". More... | |
void | GetFileName (const QString ¶mName, std::vector< QString > &values) const |
QString | GetString (const QString ¶mName) const |
Allows the retrieval of a value for a parameter of type "string". More... | |
void | GetString (const QString ¶mName, std::vector< QString > &values) const |
int | GetInteger (const QString ¶mName) const |
Allows the retrieval of a value for a parameter of type "integer". More... | |
void | GetInteger (const QString ¶mName, std::vector< int > &values) const |
bool | GetBoolean (const QString ¶mName) const |
Allows the retrieval of a value for a parameter of type "boolean". More... | |
void | GetBoolean (const QString ¶mName, std::vector< bool > &values) const |
double | GetDouble (const QString ¶mName) const |
Allows the retrieval of a value for a parameter of type "double". More... | |
void | GetDouble (const QString ¶mName, std::vector< double > &values) const |
bool | WasEntered (const QString ¶mName) const |
Returns a true if the parameter has a value, and false if it does not. More... | |
void | Clear (const QString ¶mName) |
Clears the value(s) in the named parameter. More... | |
Isis::CubeAttributeInput & | GetInputAttribute (const QString ¶mName) |
Gets the attributes for an input cube. More... | |
Isis::CubeAttributeOutput & | GetOutputAttribute (const QString ¶mName) |
Gets the attributes for an output cube. More... | |
QString | ProgramName () const |
Returns the Program name. More... | |
QString | Brief () const |
Returns the brief description of the program. More... | |
QString | Description () const |
Returns the full description of the program. More... | |
int | NumGroups () const |
Returns the number of groups found in the XML. More... | |
QString | GroupName (const int &group) const |
Returns the group name of group[index]. More... | |
int | GroupIndex (const QString &grpName) const |
Given the group name get its index in group array. More... | |
int | NumParams (const int &) const |
Returns the number of parameters in a group. More... | |
QString | ParamName (const int &group, const int ¶m) const |
Returns the parameter name. More... | |
QString | ParamType (const int &group, const int ¶m) const |
Returns the parameter type of a parameter in a specified group. More... | |
QString | ParamBrief (const int &group, const int ¶m) const |
Returns the brief description of a parameter in a specified group. More... | |
QString | ParamDescription (const int &group, const int ¶m) const |
Returns the long description of a parameter in a specified group. More... | |
QString | ParamMinimum (const int &group, const int ¶m) const |
Returns the minimum value of a parameter in a specified group. More... | |
QString | ParamMinimumInclusive (const int &group, const int ¶m) const |
Returns whether the minimum value is inclusive or not. More... | |
QString | ParamMaximum (const int &group, const int ¶m) const |
Returns the maximum value of a parameter in a specified group. More... | |
QString | ParamMaximumInclusive (const int &group, const int ¶m) const |
Returns whether the maximum value is inclusive or not. More... | |
QString | ParamOdd (const int &group, const int ¶m) const |
Returns whether the selected parameter has a restriction on odd values or not. More... | |
int | ParamGreaterThanSize (const int &group, const int ¶m) const |
Returns the number of values in the parameters greater than list. More... | |
int | ParamGreaterThanOrEqualSize (const int &group, const int ¶m) const |
Returns the number of values in the parameters greater than or equal list. More... | |
int | ParamLessThanSize (const int &group, const int ¶m) const |
Returns the number of values in the parameters less than list. More... | |
int | ParamLessThanOrEqualSize (const int &group, const int ¶m) const |
Returns the number of values in the parameters less than or equal list. More... | |
int | ParamNotEqualSize (const int &group, const int ¶m) const |
Returns the number of values in the not equal list. More... | |
QString | ParamGreaterThan (const int &group, const int ¶m, const int &great) const |
Returns the name of the specified greaterThan parameter. More... | |
QString | ParamGreaterThanOrEqual (const int &group, const int ¶m, const int &great) const |
Returns the name of the specified greaterThanOrEqual parameter. More... | |
QString | ParamLessThan (const int &group, const int ¶m, const int &great) const |
Returns the name of the specified lessThan parameter. More... | |
QString | ParamLessThanOrEqual (const int &group, const int ¶m, const int &les) const |
Returns the name of the specified lessThanOrEqual parameter. More... | |
QString | ParamNotEqual (const int &group, const int ¶m, const int ¬Eq) const |
Returns the name of the specified notEqual parameter. More... | |
int | ParamListSize (const int &group, const int ¶m) const |
Returns the number of options in the specified parameter's list. More... | |
QString | ParamListValue (const int &group, const int ¶m, const int &option) const |
Returns the option value for a specific option to a parameter. More... | |
QString | ParamListBrief (const int &group, const int ¶m, const int &option) const |
Returns the brief description for a specific option to a parameter. More... | |
QString | ParamListDescription (const int &group, const int ¶m, const int &option) const |
Returns the full description for a specific option to a parameter. More... | |
int | ParamListExcludeSize (const int &group, const int ¶m, const int &option) const |
Returns the number of items in a parameters list exclude section. More... | |
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. More... | |
int | ParamListIncludeSize (const int &group, const int ¶m, const int &option) const |
Returns the number of items in a parameters list include section. More... | |
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. More... | |
QString | ParamDefault (const int &group, const int ¶m) const |
Returns the default for a parameter in a specified group. More... | |
QString | ParamInternalDefault (const int &group, const int ¶m) const |
Returns the internal default for a parameter in a specified group. More... | |
QString | ParamFilter (const int &group, const int ¶m) const |
Returns the parameter filter for a parameter in a specified group. More... | |
QString | ParamPath (const int &group, const int ¶m) const |
Returns the default path for a filename/cube parameter. More... | |
QString | ParamFileMode (const int &group, const int ¶m) const |
Returns the file mode for a parameter in a specified group. More... | |
int | ParamExcludeSize (const int &group, const int ¶m) const |
Returns the number of parameters excluded in this parameter's exclusions. More... | |
QString | ParamExclude (const int &group, const int ¶m, const int &exclude) const |
Returns the name of the specified excluded parameter. More... | |
int | ParamIncludeSize (const int &group, const int ¶m) const |
Returns the number of parameters included in this parameter's inclusions. More... | |
QString | ParamInclude (const int &group, const int ¶m, const int &include) const |
Returns the name of the specified included parameter. More... | |
QString | PixelType (const int &group, const int ¶m) const |
Returns the default pixel type from the XML. More... | |
int | HelpersSize (const int &group, const int ¶m) const |
Returns the number of helpers the parameter has. More... | |
QString | HelperButtonName (const int &group, const int ¶m, const int &helper) const |
Returns the name of the helper button. More... | |
QString | HelperFunction (const int &group, const int ¶m, const int &helper) const |
Returns the name of the helper function. More... | |
QString | HelperBrief (const int &group, const int ¶m, const int &helper) const |
Returns the brief description of the helper button. More... | |
QString | HelperDescription (const int &group, const int ¶m, const int &helper) const |
Returns the long description of the helper button. More... | |
QString | HelperIcon (const int &group, const int ¶m, const int &helper) const |
Returns the name of the icon for the helper button. More... | |
bool | IsParamInPvlInclude (QString ¶mName, std::vector< QString > &exclude) |
Verify whether Parameter name is in the Include list Used in creation of DefFile. More... | |
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. More... | |
void | VerifyAll () |
Verify all parameters. More... | |
bool | StringToBool (QString value) const |
Returns a boolean value based on the QString contents. More... | |
void | CommandLine (Isis::Pvl &lab) const |
Creates a QString which could be used as a command line. More... | |
QString | Version () const |
Returns the application version date. More... | |
Protected Member Functions | |
const IsisParameterData * | ReturnParam (const QString ¶mName) const |
Returns a pointer to a parameter whose name starts with paramName. More... | |
Protected Attributes | |
QString | name |
QString | brief |
QString | description |
std::vector< IsisGroupData > | groups |
std::vector< QString > | categorys |
std::vector< IsisChangeData > | changes |
Private Member Functions | |
void | StartParser (const char *xmlfile) |
Starts parsing an application xml file. More... | |
void | Verify (const IsisParameterData *param) |
Throws an Isis::iExceptionXxxxxxxx if the parameter value(s) is invalid. More... | |
void | CheckFileNamePreference (QString filename, QString paramname) |
This method checks whether the user preferences are set to allow overwrites of existing files. More... | |
Private Attributes | |
XERCES::SAX2XMLReader * | parser |
The XML file parser. More... | |
IsisXMLApplication * | appHandler |
The application handler. More... | |
Application program XML file parameter manager.
This class is used to manage the data in an application XML file pertaining to the program parameters. The data is stored, accessed, and modified through this class and its helper classes.
IsisAml::IsisAml | ( | const QString & | xmlfile | ) |
Constructs an IsisAml object and internalizes the XML data in the given file name.
xmlfile | Indicates the pull path of the XML file to be parsed. |
Definition at line 38 of file IsisAml.cpp.
IsisAml::~IsisAml | ( | ) |
Destructs an IsisAml object.
Definition at line 45 of file IsisAml.cpp.
QString IsisAml::Brief | ( | ) | const |
Returns the brief description of the program.
Definition at line 1068 of file IsisAml.cpp.
|
private |
This method checks whether the user preferences are set to allow overwrites of existing files.
It should be called if the parameter is an output and the given file name exists.
filename | Name of the file to be overwritten. |
paramname | Name of the output file parameter. |
iException::User | - "The file already exists. The user preference file customization group is set to disallow file overwrites." |
iException::User | - "Invalid entry in user preference file FileCustomization group." |
Definition at line 2367 of file IsisAml.cpp.
References Isis::PvlObject::findGroup(), Isis::PvlContainer::findKeyword(), and Isis::IException::User.
void IsisAml::Clear | ( | const QString & | paramName | ) |
Clears the value(s) in the named parameter.
paramName | The name of the parameter to clear |
Definition at line 1852 of file IsisAml.cpp.
References Isis::CubeAttribute< ChildClass >::setAttributes().
Referenced by Isis::Gui::InvokeHelper(), Isis::UserInterface::loadCommandLine(), Isis::Gui::ResetParameters(), Isis::UserInterface::SetBatchList(), Isis::Gui::StartProcess(), and Isis::Gui::UpdateHistory().
void IsisAml::CommandLine | ( | Isis::Pvl & | cont | ) | const |
Creates a QString which could be used as a command line.
cont | Pvl to put command line information in |
Definition at line 2910 of file IsisAml.cpp.
References Isis::PvlObject::addGroup(), Isis::PvlKeyword::addValue(), Isis::PvlObject::clear(), Isis::PvlContainer::deleteKeyword(), Isis::PvlContainer::hasKeyword(), Isis::IString::Trim(), and Isis::IString::UpCase().
Referenced by Isis::UserInterface::SaveHistory().
void IsisAml::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.
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 Pvl.
pvlDef | - output PVL |
guiGrpName | - Gui Group name |
pvlObjName | - output PVL Object name |
pvlGrpName | - output PVL Group name |
include | - vector of parameter names to be part of the output PVL |
Definition at line 1134 of file IsisAml.cpp.
References Isis::IString::DownCase(), Isis::toString(), and Isis::IException::User.
QString IsisAml::Description | ( | ) | const |
Returns the full description of the program.
Definition at line 1078 of file IsisAml.cpp.
QString IsisAml::GetAsString | ( | const QString & | paramName | ) | const |
Allows the retrieval of a value for a parameter of any type.
The value will be returned as a QString no matter what the parameter type is.
paramName | The partial or full name of the parameter to be retrieved. |
iException | (IsisProgrammerError) The parameter has no value. |
Definition at line 537 of file IsisAml.cpp.
References Isis::IException::Programmer.
Referenced by Isis::PipelineApplication::AddParameter(), Isis::Pipeline::SetInputFile(), Isis::Pipeline::SetOutputFile(), Isis::GuiParameter::SetToCurrent(), and Isis::GuiParameter::Update().
bool IsisAml::GetBoolean | ( | const QString & | paramName | ) | const |
Allows the retrieval of a value for a parameter of type "boolean".
paramName | The partial or full name of the parameter to be retrieved. |
iException::Programmer | (IsisErrorUser) The parameter has no value. |
Definition at line 973 of file IsisAml.cpp.
References Isis::IException::Programmer, Isis::toBool(), and Isis::IException::User.
double IsisAml::GetDouble | ( | const QString & | paramName | ) | const |
Allows the retrieval of a value for a parameter of type "double".
paramName | The partial or full name of the parameter to be retrieved. |
iException::Programmer | (IsisErrorUser) The parameter has no value. |
Definition at line 891 of file IsisAml.cpp.
References Isis::IException::Programmer, Isis::IString::ToDouble(), and Isis::IException::User.
Referenced by Isis::ProcessByQuickFilter::GetFilterParameters().
QString IsisAml::GetFileName | ( | const QString & | paramName, |
QString | extension = "" |
||
) | const |
Allows the retrieval of a value for a parameter of type "filename".
paramName | The partial or full name of the parameter to be retrieved. |
extension | A default extension to add if it does not already exist on the file name. For example, "txt" will make /mydir/myfile into /mydir/myfile.txt |
Definition at line 607 of file IsisAml.cpp.
References Isis::FileName::addExtension(), Isis::FileName::expanded(), Isis::IException::Programmer, and Isis::IException::User.
Referenced by Isis::Pipeline::SetInputFile(), Isis::Pipeline::SetInputListFile(), Isis::ProcessImport::SetOutputCube(), Isis::Process::SetOutputCubeStretch(), and Isis::Pipeline::SetOutputListFile().
Isis::CubeAttributeInput & IsisAml::GetInputAttribute | ( | const QString & | paramName | ) |
Gets the attributes for an input cube.
paramName | The name of the parameter to get the attributes for |
iException::Programmer | "Parameter is not a cube." |
iException::Programmer | "Parameter in not an input cube" |
Definition at line 1874 of file IsisAml.cpp.
References Isis::IException::Programmer, and Isis::CubeAttribute< ChildClass >::setAttributes().
Referenced by Isis::Pipeline::SetInputFile().
int IsisAml::GetInteger | ( | const QString & | paramName | ) | const |
Allows the retrieval of a value for a parameter of type "integer".
paramName | The partial or full name of the parameter to be retrieved. |
iException::Programmer | (IsisErrorUser) The parameter has no value. |
Definition at line 807 of file IsisAml.cpp.
References Isis::IException::Programmer, Isis::IString::ToInteger(), and Isis::IException::User.
Referenced by Isis::ProcessByQuickFilter::GetFilterParameters().
Isis::CubeAttributeOutput & IsisAml::GetOutputAttribute | ( | const QString & | paramName | ) |
Gets the attributes for an output cube.
paramName | The name of the parameter to get the attributes for |
iException::Programmer | "Parameter is not a cube" |
iException::Programmer | "Parameter in not an output" |
Definition at line 1919 of file IsisAml.cpp.
References Isis::CubeAttribute< ChildClass >::addAttributes(), Isis::IException::Programmer, and Isis::CubeAttribute< ChildClass >::setAttributes().
Referenced by Isis::ProcessImport::SetOutputCube(), and Isis::Process::SetOutputCubeStretch().
QString IsisAml::GetString | ( | const QString & | paramName | ) | const |
Allows the retrieval of a value for a parameter of type "string".
paramName | The partial or full name of the parameter to be retrieved. |
iException::Programmer | (IsisErrorUser) The parameter has no value. |
Definition at line 692 of file IsisAml.cpp.
References Isis::IException::Programmer, and Isis::IException::User.
int IsisAml::GroupIndex | ( | const QString & | grpName | ) | const |
Given the group name get its index in group array.
Given group name return its index in the Gui.
grpName |
Definition at line 1112 of file IsisAml.cpp.
References Isis::IString::DownCase().
QString IsisAml::GroupName | ( | const int & | index | ) | const |
Returns the group name of group[index].
index | The array index of the group. |
Definition at line 1098 of file IsisAml.cpp.
QString IsisAml::HelperBrief | ( | const int & | group, |
const int & | param, | ||
const int & | helper | ||
) | const |
Returns the brief description of the helper button.
group | The group index |
param | The parameter index |
helper | The helper index |
Definition at line 1796 of file IsisAml.cpp.
Referenced by Isis::GuiParameter::AddHelpers().
QString IsisAml::HelperButtonName | ( | const int & | group, |
const int & | param, | ||
const int & | helper | ||
) | const |
Returns the name of the helper button.
group | The group index |
param | The parameter index |
helper | The helper index |
Definition at line 1768 of file IsisAml.cpp.
Referenced by Isis::GuiParameter::AddHelpers().
QString IsisAml::HelperDescription | ( | const int & | group, |
const int & | param, | ||
const int & | helper | ||
) | const |
Returns the long description of the helper button.
group | The group index |
param | The parameter index |
helper | The helper index |
Definition at line 1810 of file IsisAml.cpp.
Referenced by Isis::GuiParameter::AddHelpers().
QString IsisAml::HelperFunction | ( | const int & | group, |
const int & | param, | ||
const int & | helper | ||
) | const |
Returns the name of the helper function.
group | The group index |
param | The parameter index |
helper | The helper index |
Definition at line 1782 of file IsisAml.cpp.
Referenced by Isis::GuiParameter::AddHelpers().
QString IsisAml::HelperIcon | ( | const int & | group, |
const int & | param, | ||
const int & | helper | ||
) | const |
Returns the name of the icon for the helper button.
group | The group index |
param | The parameter index |
helper | The helper index |
Definition at line 1824 of file IsisAml.cpp.
Referenced by Isis::GuiParameter::AddHelpers().
int IsisAml::HelpersSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of helpers the parameter has.
group | The group index |
param | The parameter index |
Definition at line 1755 of file IsisAml.cpp.
Referenced by Isis::GuiParameter::AddHelpers(), and Isis::GuiFileNameParameter::GuiFileNameParameter().
bool IsisAml::IsParamInPvlInclude | ( | QString & | paramName, |
std::vector< QString > & | exclude | ||
) |
Verify whether Parameter name is in the Include list Used in creation of DefFile.
Verify if the Parameter is in the Included list.
paramName | - parameter name |
include | - include list |
Definition at line 1191 of file IsisAml.cpp.
References Isis::IString::DownCase().
int IsisAml::NumGroups | ( | ) | const |
Returns the number of groups found in the XML.
Definition at line 1087 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::Gui::Gui(), and Isis::UserInterface::SetBatchList().
int IsisAml::NumParams | ( | const int & | group | ) | const |
Returns the number of parameters in a group.
group | The group to measure. |
Definition at line 1207 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::Gui::Gui(), and Isis::UserInterface::SetBatchList().
QString IsisAml::ParamBrief | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the brief description of a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1232 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamDefault | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the default for a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1505 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiParameter::GuiParameter(), Isis::GuiBooleanParameter::IsModified(), Isis::GuiParameter::IsModified(), Isis::GuiParameter::SetToDefault(), and Isis::GuiParameter::Update().
QString IsisAml::ParamDescription | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the long description of a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1245 of file IsisAml.cpp.
QString IsisAml::ParamExclude | ( | const int & | group, |
const int & | param, | ||
const int & | exclude | ||
) | const |
Returns the name of the specified excluded parameter.
group | The group index |
param | The parameter index |
exclude | The exclude index |
Definition at line 1462 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiBooleanParameter::Exclusions(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamExcludeSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of parameters excluded in this parameter's exclusions.
group | The group index |
param | The parameter index |
Definition at line 1719 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiBooleanParameter::Exclusions(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamFileMode | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the file mode for a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1581 of file IsisAml.cpp.
Referenced by Isis::GuiCubeParameter::SelectAttribute(), and Isis::GuiFileNameParameter::SelectFile().
QString IsisAml::ParamFilter | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the parameter filter for a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1543 of file IsisAml.cpp.
Referenced by Isis::GuiFileNameParameter::SelectFile().
QString IsisAml::ParamGreaterThan | ( | const int & | group, |
const int & | param, | ||
const int & | great | ||
) | const |
Returns the name of the specified greaterThan parameter.
group | The group index |
param | The parameter index |
great | The greaterThan index |
Definition at line 1387 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamGreaterThanOrEqual | ( | const int & | group, |
const int & | param, | ||
const int & | great | ||
) | const |
Returns the name of the specified greaterThanOrEqual parameter.
group | The group index |
param | The parameter index |
great | The greaterThanOrEqual index |
Definition at line 1402 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamGreaterThanOrEqualSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of values in the parameters greater than or equal list.
group | The group index |
param | The parameter index |
Definition at line 1336 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamGreaterThanSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of values in the parameters greater than list.
group | The group index |
param | The parameter index |
Definition at line 1324 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamInclude | ( | const int & | group, |
const int & | param, | ||
const int & | include | ||
) | const |
Returns the name of the specified included parameter.
group | The group index |
param | The parameter index |
include | The include index |
Definition at line 1477 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiBooleanParameter::Exclusions(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamIncludeSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of parameters included in this parameter's inclusions.
group | The group index |
param | The parameter index |
Definition at line 1731 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiBooleanParameter::Exclusions(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamInternalDefault | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the internal default for a parameter in a specified group.
.
group | The group index |
param | The parameter index |
Definition at line 1524 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiParameter::GuiParameter(), Isis::GuiParameter::IsModified(), Isis::GuiFileNameParameter::SelectFile(), Isis::GuiParameter::SetToDefault(), and Isis::GuiParameter::Update().
QString IsisAml::ParamLessThan | ( | const int & | group, |
const int & | param, | ||
const int & | les | ||
) | const |
Returns the name of the specified lessThan parameter.
group | The group index |
param | The parameter index |
les | The lessThan index |
Definition at line 1417 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamLessThanOrEqual | ( | const int & | group, |
const int & | param, | ||
const int & | les | ||
) | const |
Returns the name of the specified lessThanOrEqual parameter.
group | The group index |
param | The parameter index |
les | The lessThanOrEqual index |
Definition at line 1432 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamLessThanOrEqualSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of values in the parameters less than or equal list.
group | The group index |
param | The parameter index |
Definition at line 1361 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamLessThanSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of values in the parameters less than list.
group | The group index |
param | The parameter index |
Definition at line 1349 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamListBrief | ( | const int & | group, |
const int & | param, | ||
const int & | option | ||
) | const |
Returns the brief description for a specific option to a parameter.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
Definition at line 1630 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption().
QString IsisAml::ParamListDescription | ( | const int & | group, |
const int & | param, | ||
const int & | option | ||
) | const |
Returns the full description for a specific option to a parameter.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
Definition at line 1645 of file IsisAml.cpp.
QString IsisAml::ParamListExclude | ( | const int & | group, |
const int & | param, | ||
const int & | option, | ||
const int & | exclude | ||
) | const |
Returns the parameter name to be excluded if this option is selected.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
exclude | The exclusion number within the parameters list. |
Definition at line 1675 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiComboBoxParameter::Exclusions(), and Isis::GuiListParameter::Exclusions().
int IsisAml::ParamListExcludeSize | ( | const int & | group, |
const int & | param, | ||
const int & | option | ||
) | const |
Returns the number of items in a parameters list exclude section.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
Definition at line 1660 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiComboBoxParameter::Exclusions(), and Isis::GuiListParameter::Exclusions().
QString IsisAml::ParamListInclude | ( | const int & | group, |
const int & | param, | ||
const int & | option, | ||
const int & | include | ||
) | const |
Returns the parameter name to be included if this option is selected.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
include | The inclusion number within the parameters list. |
Definition at line 1705 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption().
int IsisAml::ParamListIncludeSize | ( | const int & | group, |
const int & | param, | ||
const int & | option | ||
) | const |
Returns the number of items in a parameters list include section.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
Definition at line 1690 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption().
int IsisAml::ParamListSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of options in the specified parameter's list.
group | The group index |
param | The parameter index |
Definition at line 1601 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption().
QString IsisAml::ParamListValue | ( | const int & | group, |
const int & | param, | ||
const int & | option | ||
) | const |
Returns the option value for a specific option to a parameter.
group | The group index |
param | The parameter index |
option | The option number within the parameters list. |
Definition at line 1615 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption().
QString IsisAml::ParamMaximum | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the maximum value of a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1271 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamMaximumInclusive | ( | const int & | group, |
const int & | param | ||
) | const |
Returns whether the maximum value is inclusive or not.
group | The group index |
param | The parameter index |
Definition at line 1297 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamMinimum | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the minimum value of a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1258 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamMinimumInclusive | ( | const int & | group, |
const int & | param | ||
) | const |
Returns whether the minimum value is inclusive or not.
group | The group index |
param | The parameter index |
Definition at line 1284 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamName | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the parameter name.
group | The group index where the parameter can be found. |
param | The index of the parameter to name. |
Definition at line 1219 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiParameter::GuiParameter(), Isis::GuiCubeParameter::SelectAttribute(), and Isis::UserInterface::SetBatchList().
QString IsisAml::ParamNotEqual | ( | const int & | group, |
const int & | param, | ||
const int & | notEq | ||
) | const |
Returns the name of the specified notEqual parameter.
group | The group index |
param | The parameter index |
notEq | The notEqual index |
Definition at line 1447 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
int IsisAml::ParamNotEqualSize | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the number of values in the not equal list.
group | The group index |
param | The parameter index |
Definition at line 1374 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamOdd | ( | const int & | group, |
const int & | param | ||
) | const |
Returns whether the selected parameter has a restriction on odd values or not.
group | The group index |
param | The parameter index |
Definition at line 1311 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::ParamPath | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the default path for a filename/cube parameter.
group | The group index |
param | The parameter index |
Definition at line 1562 of file IsisAml.cpp.
Referenced by Isis::GuiFileNameParameter::SelectFile().
QString IsisAml::ParamType | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the parameter type of a parameter in a specified group.
group | The group index |
param | The parameter index |
Definition at line 1492 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), and Isis::GuiParameter::GuiParameter().
QString IsisAml::PixelType | ( | const int & | group, |
const int & | param | ||
) | const |
Returns the default pixel type from the XML.
group | The group index |
param | The parameter index |
Definition at line 1743 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::GuiParameter::GuiParameter(), and Isis::GuiCubeParameter::SelectAttribute().
QString IsisAml::ProgramName | ( | ) | const |
Returns the Program name.
Definition at line 1057 of file IsisAml.cpp.
Referenced by Isis::UserInterface::evaluateOption(), Isis::UserInterface::loadHistory(), Isis::UserInterface::SaveHistory(), Isis::Gui::ShowWarning(), Isis::Gui::StopProcessing(), Isis::Gui::UpdateCommandLine(), and Isis::Gui::UpdateHistory().
void IsisAml::PutAsString | ( | const QString & | paramName, |
const QString & | value | ||
) |
Allows the insertion of a value for any parameter.
No validity check is performed on the value passed in.
paramName | The partial or full name of the parameter to be modified. |
value | The QString representation of the value to be placed in the parameters value data member. For parameters of type integer, the QString must be convertable to an integer. For parameters of type double, the QString must be convertable to a double. For parameters of type boolean, the QString must be one of: (TRUE, FALSE, YES, NO, or a partial match of any of these beginning with the first character). |
IException | The parameter already has a value in its "value" data member.Overwriting an existing value is not allowed. Use "Clear" to erase all values in the value data member instead of overwriting an existing value. |
Definition at line 65 of file IsisAml.cpp.
References Isis::IException::User.
Referenced by Isis::Gui::InvokeHelper(), Isis::UserInterface::loadCommandLine(), Isis::UserInterface::loadHistory(), Isis::UserInterface::SetBatchList(), Isis::Gui::StartProcess(), and Isis::Gui::UpdateHistory().
void IsisAml::PutBoolean | ( | const QString & | paramName, |
const bool & | value | ||
) |
Allows the insertion of a value for a parameter of type "boolean".
A validity check is performed on the value passed in.
paramName | The partial or full name of the parameter to be modified. |
value | The boolean value to be placed in the boolean's value data member. |
iException | (IsisProgrammerError) The parameter already has a value in its "value" data member.Overwriting an existing value is not allowed. Use "Clear" to erase all values in the value data member instead of overwriting an existing value. |
iException | (IsisProgrammerError) The parameter is not of type "boolean". |
Definition at line 446 of file IsisAml.cpp.
References Isis::IException::Programmer.
void IsisAml::PutDouble | ( | const QString & | paramName, |
const double & | value | ||
) |
Allows the insertion of a value for a parameter of type "double".
A validity check is performed on the value passed in.
paramName | The partial or full name of the parameter to be modified. |
value | The double value to be placed in the double's value data member. |
iException | (IsisProgrammerError) The parameter already has a value in its "value" data member.Overwriting an existing value is not allowed. Use "Clear" to erase all values in the value data member instead of overwriting an existing value. |
iException | (IsisProgrammerError) The parameter is not of type "double". |
Definition at line 361 of file IsisAml.cpp.
References Isis::IException::Programmer, and Isis::toString().
void IsisAml::PutFileName | ( | const QString & | paramName, |
const QString & | value | ||
) |
Allows the insertion of a value for a parameter of type "filename".
A validity check is performed on the value passed in.
paramName | The partial or full name of the parameter to be modified. |
value | The QString representation of the value to be placed in the filename's value data member. |
Definition at line 195 of file IsisAml.cpp.
References Isis::IException::Programmer.
void IsisAml::PutInteger | ( | const QString & | paramName, |
const int & | value | ||
) |
Allows the insertion of a value for a parameter of type "integer".
A validity check is performed on the value passed in.
paramName | The partial or full name of the parameter to be modified. |
value | The integer value to be placed in the integer's value data member. |
iException | (IsisProgrammerError) The parameter is not of type "int". |
Definition at line 275 of file IsisAml.cpp.
References Isis::IException::Programmer, and Isis::toString().
void IsisAml::PutString | ( | const QString & | paramName, |
const QString & | value | ||
) |
Allows the insertion of a value for any parameter.
No validity check is performed on the value passed in.
paramName | The partial or full name of the parameter to be modified. |
value | The QString representation of the value to be placed in the parameters value data member. For parameters of type integer, the QString must be convertable to an integer. For parameters of type double, the QString must be convertable to a double. For parameters of type boolean, the QString must be one of: (TRUE, FALSE, YES, NO, or a partial match of any of these beginning with the first character). |
Definition at line 128 of file IsisAml.cpp.
References Isis::IException::Programmer.
|
protected |
Returns a pointer to a parameter whose name starts with paramName.
paramName | The name of the parameter to return |
iException::User | (Parameter is not unique) |
iException::User | (Unknown Parameter) |
Definition at line 1965 of file IsisAml.cpp.
References Isis::IString::UpCase(), and Isis::IException::User.
Referenced by Isis::UserInterface::loadHistory().
|
private |
Starts parsing an application xml file.
xmlfile | The xml file to parse |
iException::Programmer | (Error during XML parser initialization) |
Definition at line 3003 of file IsisAml.cpp.
References Isis::IException::Programmer, and Isis::IException::toString().
bool IsisAml::StringToBool | ( | QString | value | ) | const |
Returns a boolean value based on the QString contents.
value | The value to convert to a boolean |
iException::Programmer | (Invalid boolean value) |
Definition at line 2867 of file IsisAml.cpp.
References Isis::IException::Programmer.
|
private |
Throws an Isis::iExceptionXxxxxxxx if the parameter value(s) is invalid.
param | The parameter data |
iException::User |
Definition at line 2017 of file IsisAml.cpp.
References Isis::FileName::expanded(), Isis::FileName::fileExists(), Isis::IException::Programmer, Isis::IString::ToDouble(), Isis::toInt(), Isis::IString::ToInteger(), Isis::IString::UpCase(), and Isis::IException::User.
void IsisAml::VerifyAll | ( | ) |
Verify all parameters.
Definition at line 2387 of file IsisAml.cpp.
References Isis::IException::Programmer, and Isis::IException::User.
Referenced by Isis::UserInterface::SetBatchList(), and Isis::Gui::StartProcess().
QString IsisAml::Version | ( | ) | const |
Returns the application version date.
Definition at line 2987 of file IsisAml.cpp.
bool IsisAml::WasEntered | ( | const QString & | paramName | ) | const |
Returns a true if the parameter has a value, and false if it does not.
paramName | The name of the parameter to check if it was entered |
Definition at line 1836 of file IsisAml.cpp.
Referenced by Isis::PipelineApplication::AddParameter(), Isis::Pipeline::SetInputFile(), Isis::Pipeline::SetOutputFile(), Isis::Pipeline::SetOutputListFile(), Isis::GuiParameter::SetToCurrent(), and Isis::GuiParameter::Update().
|
private |
|
private |
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:24:19 |