#include <Application.h>
|
static UserInterface & | GetUserInterface () |
| Returns the UserInterface object.
|
|
static void | Log (PvlGroup &results) |
| Writes Pvl results to sessionlog and printfile.
|
|
static void | AppendAndLog (PvlGroup &results, Pvl *log) |
| Writes the pvl group results to both a passed in Pvl log and the applications log (either GUI or command line)
|
|
static void | GuiLog (const Pvl &results) |
| Writes the Pvl results to the sessionlog, but not to the printfile.
|
|
static void | GuiLog (const PvlGroup &results) |
| Writes the PvlGroup results to the sessionlog, but not to the printfile.
|
|
static void | GuiLog (const QString &results) |
| Writes the results to the sessionlog, but not to the printfile.
|
|
static QString | Name () |
| Returns the name of the application.
|
|
static QString | formatError (IException &e) |
|
static QString | UserName () |
| Returns the user name.
|
|
static QString | HostName () |
| Returns the host name.
|
|
static QString | DateTime (time_t *curtime=0) |
| Returns the date and time as a QString.
|
|
static QString | Version () |
| The Isis Version for this application.
|
|
static bool | HasParent () |
| Returns whether the application has a parent or not.
|
|
static QString | userName () |
| @Returns the user name.
|
|
static QString | hostName () |
|
static QString | isisVersion () |
|
static QString | getEnvironmentValue (QString, QString) |
|
◆ Application()
Isis::Application::Application |
( |
int & | argc, |
|
|
char * | argv[] ) |
Constuctor for the Application object.
- Parameters
-
argc | Number of arguments in argv[]. This must be passed by reference!! |
*argv[] | An array containing the command line arguments |
- Exceptions
-
Isis::iException::Io | - FileOpen error |
References _FILEINFO_, DateTime(), Isis::IException::errorType(), Isis::FileName::expanded(), Isis::FileName::fileExists(), Isis::Message::FileOpen(), GetUserInterface(), Isis::iApp, Isis::IException::Io, Isis::FileName::name(), p_applicationForceGuiApp, Isis::Preference::Preferences(), Isis::IException::print(), Isis::toString(), and UserName().
◆ ~Application()
Isis::Application::~Application |
( |
| ) |
|
◆ Accounting()
PvlGroup Isis::Application::Accounting |
( |
| ) |
|
◆ AppendAndLog()
void Isis::Application::AppendAndLog |
( |
PvlGroup & | results, |
|
|
Pvl * | log ) |
|
static |
Writes the pvl group results to both a passed in Pvl log and the applications log (either GUI or command line)
- Parameters
-
results | Pvl containing the results to add to the session log |
log | App log for running in code |
References Isis::PvlObject::addGroup(), and Log().
◆ DateTime()
QString Isis::Application::DateTime |
( |
time_t * | curtime = 0 | ) |
|
|
static |
◆ formatError()
QString Isis::Application::formatError |
( |
IException & | e | ) |
|
|
static |
◆ getEnvironmentValue()
QString Isis::Environment::getEnvironmentValue |
( |
QString | variable, |
|
|
QString | defaultValue ) |
|
staticinherited |
- Parameters
-
variable | The environment variable to get |
defaultValue | The returned value for variable if variable doesn't exist. |
- Returns
- The value for the environment variable requested.
Referenced by Environment(), hostName(), QStartup(), and userName().
◆ GetGuiHelper()
void * Isis::Application::GetGuiHelper |
( |
QString | helper | ) |
|
|
inline |
◆ GetUserInterface()
Returns the UserInterface object.
- Returns
- A pointer to the UserInterface object
References Isis::iApp.
Referenced by Isis::PipelineApplication::AddParameter(), Isis::PipelineApplication::AddParameter(), Application(), Isis::Process::SetInputCube(), Isis::Pipeline::SetInputFile(), Isis::Pipeline::SetInputFile(), Isis::Pipeline::SetInputListFile(), Isis::ProcessExport::SetInputRange(), Isis::Process::SetOutputCube(), Isis::ProcessImport::SetOutputCube(), Isis::ProcessMosaic::SetOutputCube(), Isis::Process::SetOutputCubeStretch(), Isis::Pipeline::SetOutputFile(), Isis::Pipeline::SetOutputListFile(), Isis::ProcessGroundPolygons::SetStatCubes(), Isis::ProcessGroundPolygons::SetStatCubes(), and Isis::ProcessPolygons::SetStatCubes().
◆ GuiLog() [1/3]
void Isis::Application::GuiLog |
( |
const Pvl & | results | ) |
|
|
static |
Writes the Pvl results to the sessionlog, but not to the printfile.
- Parameters
-
results | Pvl containing the results to add to the session log |
References HasParent(), and Isis::iApp.
◆ GuiLog() [2/3]
void Isis::Application::GuiLog |
( |
const PvlGroup & | results | ) |
|
|
static |
Writes the PvlGroup results to the sessionlog, but not to the printfile.
- Parameters
-
results | PvlGroup containing the results to add to the session log |
References HasParent(), and Isis::iApp.
◆ GuiLog() [3/3]
void Isis::Application::GuiLog |
( |
const QString & | results | ) |
|
|
static |
Writes the results to the sessionlog, but not to the printfile.
- Parameters
-
results | QString containing the results to add to the session log |
References HasParent(), and Isis::iApp.
◆ GuiReportError()
void Isis::Application::GuiReportError |
( |
IException & | e | ) |
|
Loads the error message into the gui, but does not write it to the session log.
- Parameters
-
References formatError().
◆ HasParent()
bool Isis::Application::HasParent |
( |
| ) |
|
|
static |
Returns whether the application has a parent or not.
- Returns
- bool Returns true if it has a parent, and false if it does not
References Isis::iApp.
Referenced by GuiLog(), GuiLog(), GuiLog(), and Log().
◆ History()
◆ HostName()
QString Isis::Application::HostName |
( |
| ) |
|
|
static |
◆ hostName()
QString Isis::Environment::hostName |
( |
| ) |
|
|
staticinherited |
◆ isisVersion()
QString Isis::Environment::isisVersion |
( |
| ) |
|
|
staticinherited |
◆ Log()
void Isis::Application::Log |
( |
PvlGroup & | results | ) |
|
|
static |
◆ Name()
QString Isis::Application::Name |
( |
| ) |
|
|
static |
◆ RegisterGuiHelpers()
void Isis::Application::RegisterGuiHelpers |
( |
std::map< QString, void * > | helpers | ) |
|
|
inline |
- Parameters
-
Referenced by main().
◆ Run()
int Isis::Application::Run |
( |
void(* | funct )() | ) |
|
◆ UserName()
QString Isis::Application::UserName |
( |
| ) |
|
|
static |
◆ userName()
QString Isis::Environment::userName |
( |
| ) |
|
|
staticinherited |
◆ Version()
QString Isis::Application::Version |
( |
| ) |
|
|
static |
◆ Gui
References Gui.
Referenced by Gui.
◆ ProgramLauncher
◆ Progress
◆ p_applicationForceGuiApp
bool Isis::Application::p_applicationForceGuiApp = false |
|
static |
The documentation for this class was generated from the following files: