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();
133 static bool p_applicationForceGuiApp;
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;
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;
void FunctionCleanup()
Cleans up after the function by writing the log, saving the history, and either sending the log to th...
QTime m_connectTime
Used to calculate program's run time.
static UserInterface & GetUserInterface()
Returns the UserInterface object.
static bool HasParent()
Returns whether the application has a parent or not.
void SendParentErrors(PvlObject &errors)
Sends errors to the parent.
void GuiReportError(IException &e)
Loads the error message into the gui, but does not write it to the session log.
UserInterface * p_ui
Pointer to a User Interface object.
void SetParentConnection(QLocalSocket *p_connection)
static QString Version()
The Isis Version for this application.
static QString Name()
Returns the name of the application.
Execute External Programs and Commands.
PvlGroup Accounting()
Creates accounting PvlGroup.
void SendParentData(QString, const QString &)
Program progress reporter.
static void GuiLog(const Pvl &results)
Writes the Pvl results to the sessionlog, but not to the printfile.
static PvlGroup GetEnviromentInfo()
Runs some printenv commands that return Isis related Enviroment Variables.
static QString DateTime(time_t *curtime=0)
Returns the date and time as a QString.
Contains multiple PvlContainers.
static void Log(PvlGroup &results)
Writes Pvl results to sessionlog and printfile.
static QString GetSystemDiskSpace()
Runs df to see the disk space availability.
static QString GetLibraryDependencies(QString file)
Runs ldd on linux and sun and otool on macs to get information about the applicaiton run...
static QString HostName()
Returns the host name.
~Application()
Destroys the Application object.
int DirectIO()
Returns the current number of I/O's.
Container for cube-like labels.
int FunctionError(IException &e)
Adds the error to the session log, sends the error to the parent if it has one, loads the error messa...
int PageFaults()
Returns the current number of faults.
void ProcessGuiEvents()
Processes the gui events.
PvlObject History()
Creates an application history PvlObject.
static QString UserName()
Returns the user name.
Namespace for ISIS/Bullet specific routines.
Command Line and Xml loader, validation, and access.
Application(int &argc, char *argv[])
Constuctor for the Application object.
int Run(void(*funct)())
Runs the program defined in the function funct.
static PvlGroup GetUnameInfo()
Runs various system specific uname commands and returns the results.
void UpdateProgress(const QString &text, bool print)
Updates the progress bar in the gui.
Contains Pvl Groups and Pvl Objects.
void RegisterGuiHelpers(std::map< QString, void *> helpers)
int ProcessSwaps()
Returns the current number of swaps.
void * GetGuiHelper(QString helper)
Gui for Isis Applications.