Isis 3 Developer Reference
|
#include <Application.h>
Public Member Functions | |
Application (int &argc, char *argv[]) | |
Constuctor for the Application object. More... | |
~Application () | |
Destroys the Application object. More... | |
int | Run (void(*funct)()) |
Runs the program defined in the function funct. More... | |
PvlGroup | Accounting () |
Creates accounting PvlGroup. More... | |
PvlObject | History () |
Creates an application history PvlObject. More... | |
void | RegisterGuiHelpers (std::map< QString, void *> helpers) |
void * | GetGuiHelper (QString helper) |
void | GuiReportError (IException &e) |
Loads the error message into the gui, but does not write it to the session log. More... | |
Static Public Member Functions | |
static UserInterface & | GetUserInterface () |
Returns the UserInterface object. More... | |
static void | Log (PvlGroup &results) |
Writes Pvl results to sessionlog and printfile. More... | |
static void | GuiLog (const Pvl &results) |
Writes the Pvl results to the sessionlog, but not to the printfile. More... | |
static void | GuiLog (const PvlGroup &results) |
Writes the PvlGroup results to the sessionlog, but not to the printfile. More... | |
static void | GuiLog (const QString &results) |
Writes the results to the sessionlog, but not to the printfile. More... | |
static QString | Name () |
Returns the name of the application. More... | |
static QString | UserName () |
Returns the user name. More... | |
static QString | HostName () |
Returns the host name. More... | |
static QString | DateTime (time_t *curtime=0) |
Returns the date and time as a QString. More... | |
static QString | Version () |
The Isis Version for this application. More... | |
static bool | HasParent () |
Returns whether the application has a parent or not. More... | |
static QString | userName () |
the user name. More... | |
static QString | hostName () |
static QString | isisVersion () |
static QString | getEnvironmentValue (QString, QString) |
Static Public Attributes | |
static bool | p_applicationForceGuiApp = false |
Friends | |
class | Gui |
class | Progress |
class | ProgramLauncher |
Isis::Application::Application | ( | int & | argc, |
char * | argv[] | ||
) |
Constuctor for the Application object.
argc | Number of arguments in argv[]. This must be passed by reference!! |
*argv[] | An array containing the command line arguments |
Isis::iException::Io | - FileOpen error |
References _FILEINFO_, Isis::IException::errorType(), Isis::FileName::expanded(), Isis::FileName::fileExists(), Isis::Message::FileOpen(), GetUserInterface(), Isis::iApp, Isis::FileName::name(), Isis::UserInterface::ParentId(), Isis::IException::print(), and Isis::toString().
Isis::Application::~Application | ( | ) |
Destroys the Application object.
PvlGroup Isis::Application::Accounting | ( | ) |
|
static |
Returns the date and time as a QString.
*curtime |
Referenced by Isis::ControlPoint::GetDateTime().
|
staticinherited |
variable | The environment variable to get |
defaultValue | The returned value for variable if variable doesn't exist. |
Referenced by Isis::Environment::Environment(), Isis::Environment::hostName(), QStartup(), and Isis::Environment::userName().
|
inline |
helper |
|
static |
Returns the UserInterface object.
References Isis::iApp.
Referenced by Isis::PipelineApplication::AddParameter(), Application(), GuiLog(), Log(), Isis::Pipeline::SetInputFile(), Isis::Pipeline::SetInputListFile(), Isis::ProcessExport::SetInputRange(), Isis::ProcessImport::SetOutputCube(), Isis::Pipeline::SetOutputFile(), Isis::Pipeline::SetOutputListFile(), and Isis::Gui::ShowWarning().
|
static |
Writes the Pvl results to the sessionlog, but not to the printfile.
results | Pvl containing the results to add to the session log |
References GetUserInterface(), Isis::iApp, Isis::UserInterface::IsInteractive(), Isis::Gui::Log(), Isis::Gui::ShowLog(), and Isis::UserInterface::TheGui().
|
static |
Writes the PvlGroup results to the sessionlog, but not to the printfile.
results | PvlGroup containing the results to add to the session log |
References GetUserInterface(), Isis::iApp, Isis::UserInterface::IsInteractive(), Isis::Gui::Log(), Isis::Gui::ShowLog(), and Isis::UserInterface::TheGui().
|
static |
Writes the results to the sessionlog, but not to the printfile.
results | QString containing the results to add to the session log |
References GetUserInterface(), Isis::iApp, Isis::UserInterface::IsInteractive(), Isis::Gui::Log(), Isis::Gui::ShowLog(), and Isis::UserInterface::TheGui().
void Isis::Application::GuiReportError | ( | IException & | e | ) |
Loads the error message into the gui, but does not write it to the session log.
e | The Isis::iException |
References Isis::IException::toString().
|
static |
Returns whether the application has a parent or not.
References Isis::iApp, and Isis::UserInterface::ParentId().
PvlObject Isis::Application::History | ( | ) |
Creates an application history PvlObject.
References Isis::PvlObject::addGroup().
Referenced by Isis::History::AddEntry().
|
staticinherited |
References Isis::Environment::getEnvironmentValue().
|
static |
Returns the host name.
Returns 'Unknown' if it cannot find the host name.
|
staticinherited |
References _FILEINFO_, Isis::TextFile::GetLine(), and Isis::IException::Programmer.
|
static |
Writes Pvl results to sessionlog and printfile.
results | PvlGroup of results to add to the session log |
References GetUserInterface(), Isis::iApp, Isis::UserInterface::IsInteractive(), Isis::Gui::Log(), Isis::Gui::ShowLog(), and Isis::UserInterface::TheGui().
|
static |
Returns the name of the application.
Returns 'Unknown' if the application or gui equal NULL
Referenced by Isis::ControlPoint::GetChooserName(), and Isis::IException::toPvl().
|
inline |
helpers |
Referenced by main().
int Isis::Application::Run | ( | void(*)() | funct | ) |
Runs the program defined in the function funct.
*funct |
References _FILEINFO_.
Referenced by main().
|
staticinherited |
the user name.
Returns 'Unknown' if it cannot find the user name.
References Isis::Environment::getEnvironmentValue().
Referenced by Isis::Project::clear(), and Isis::Project::Project().
|
static |
Returns the user name.
Returns 'Unknown' if it cannot find the user name.
Referenced by Isis::ControlPointEditWidget::createControlPoint(), Isis::QnetTool::createFixedPoint(), Isis::StereoTool::createPoint(), Isis::MatchTool::createPoint(), Isis::QnetTool::createPoint(), Isis::QnetFileTool::open(), and Isis::SocketThread::run().
|
static |
The Isis Version for this application.
|
friend |
|
friend |
|
friend |
|
static |
Referenced by main().