29 #include <sys/types.h> 31 #include <sys/socket.h> 122 int Run(
void (*funct)());
130 static void GuiLog(
const QString &results);
131 static QString
Name();
139 p_guiHelpers = helpers;
146 return p_guiHelpers[helper];
153 static QString
DateTime(time_t *curtime = 0);
164 QLocalSocket *p_connectionToParent;
166 clock_t p_startClock;
170 int p_startPageFaults;
171 int p_startProcessSwaps;
177 void SendParentData(QString,
const QString &);
178 void SendParentErrors(
PvlObject &errors);
181 static PvlGroup GetEnviromentInfo();
182 static QString GetSystemDiskSpace();
183 static QString GetLibraryDependencies(QString file);
186 void FunctionCleanup();
191 void UpdateProgress(
const QString &text,
bool print);
192 void UpdateProgress(
int percent,
bool print);
193 void ProcessGuiEvents();
198 void SetParentConnection(QLocalSocket *p_connection) {
199 p_connectionToParent = p_connection;
201 void EstablishConnections();
202 void WaitForCommand(
int childSocket);
205 std::map<QString, void *> p_guiHelpers;
206 static QString p_appName;
210 extern Application *
iApp;
Definition: Application.h:117
static UserInterface & GetUserInterface()
Returns the UserInterface object.
Definition: Application.cpp:479
static bool HasParent()
Returns whether the application has a parent or not.
Definition: Application.cpp:488
Application * iApp
Definition: Application.cpp:67
void GuiReportError(IException &e)
Loads the error message into the gui, but does not write it to the session log.
Definition: Application.cpp:724
Definition: Environment.h:52
static QString Version()
The Isis Version for this application.
Definition: Application.cpp:850
static QString Name()
Returns the name of the application.
Definition: Application.cpp:745
Execute External Programs and Commands.
Definition: ProgramLauncher.h:50
PvlGroup Accounting()
Creates accounting PvlGroup.
Definition: Application.cpp:297
Program progress reporter.
Definition: Progress.h:58
static void GuiLog(const Pvl &results)
Writes the Pvl results to the sessionlog, but not to the printfile.
Definition: Application.cpp:411
static QString DateTime(time_t *curtime=0)
Returns the date and time as a QString.
Definition: Application.cpp:818
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
static void Log(PvlGroup &results)
Writes Pvl results to sessionlog and printfile.
Definition: Application.cpp:369
static QString HostName()
Returns the host name.
Definition: Application.cpp:841
~Application()
Destroys the Application object.
Definition: Application.cpp:179
static bool p_applicationForceGuiApp
Definition: Application.h:133
Container for cube-like labels.
Definition: Pvl.h:135
PvlObject History()
Creates an application history PvlObject.
Definition: Application.cpp:267
static QString UserName()
Returns the user name.
Definition: Application.cpp:832
Isis exception class.
Definition: IException.h:107
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Command Line and Xml loader, validation, and access.
Definition: UserInterface.h:155
Application(int &argc, char *argv[])
Constuctor for the Application object.
Definition: Application.cpp:80
int Run(void(*funct)())
Runs the program defined in the function funct.
Definition: Application.cpp:193
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74
void RegisterGuiHelpers(std::map< QString, void *> helpers)
Definition: Application.h:138
void * GetGuiHelper(QString helper)
Definition: Application.h:145
Gui for Isis Applications.
Definition: Gui.h:90