|
Isis 3 Programmer Reference
|
11 #include "Environment.h"
13 #include <sys/types.h>
15 #include <sys/socket.h>
26 #include "UserInterface.h"
106 int Run(
void (*funct)());
114 static void GuiLog(
const QString &results);
115 static QString
Name();
117 static bool p_applicationForceGuiApp;
123 p_guiHelpers = helpers;
130 return p_guiHelpers[helper];
137 static QString
DateTime(time_t *curtime = 0);
148 QLocalSocket *p_connectionToParent;
150 clock_t p_startClock;
154 int p_startPageFaults;
155 int p_startProcessSwaps;
183 p_connectionToParent = p_connection;
185 void EstablishConnections();
186 void WaitForCommand(
int childSocket);
189 std::map<QString, void *> p_guiHelpers;
190 static QString p_appName;
194 extern Application *iApp;
PvlGroup Accounting()
Creates accounting PvlGroup.
Contains Pvl Groups and Pvl Objects.
Execute External Programs and Commands.
static bool HasParent()
Returns whether the application has a parent or not.
static QString GetLibraryDependencies(QString file)
Runs ldd on linux and sun and otool on macs to get information about the applicaiton run.
static void GuiLog(const Pvl &results)
Writes the Pvl results to the sessionlog, but not to the printfile.
void SendParentErrors(PvlObject &errors)
Sends errors to the parent.
void SendParentData(QString, const QString &)
Container for cube-like labels.
QTime m_connectTime
Used to calculate program's run time.
void RegisterGuiHelpers(std::map< QString, void * > helpers)
Gui for Isis Applications.
static UserInterface & GetUserInterface()
Returns the UserInterface object.
static QString GetSystemDiskSpace()
Runs df to see the disk space availability.
static QString Version()
The Isis Version for this application.
Contains multiple PvlContainers.
static PvlGroup GetUnameInfo()
Runs various system specific uname commands and returns the results.
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.
static QString Name()
Returns the name of the application.
void FunctionCleanup()
Cleans up after the function by writing the log, saving the history, and either sending the log to th...
int Run(void(*funct)())
Runs the program defined in the function funct.
Program progress reporter.
Application(int &argc, char *argv[])
Constuctor for the Application object.
void ProcessGuiEvents()
Processes the gui events.
~Application()
Destroys the Application object.
void * GetGuiHelper(QString helper)
void UpdateProgress(const QString &text, bool print)
Updates the progress bar in the gui.
Command Line and Xml loader, validation, and access.
int ProcessSwaps()
Returns the current number of swaps.
static void Log(PvlGroup &results)
Writes Pvl results to sessionlog and printfile.
static PvlGroup GetEnviromentInfo()
Runs some printenv commands that return Isis related Enviroment Variables.
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...
static QString UserName()
Returns the user name.
static QString DateTime(time_t *curtime=0)
Returns the date and time as a QString.
int PageFaults()
Returns the current number of faults.
int DirectIO()
Returns the current number of I/O's.
void SetParentConnection(QLocalSocket *p_connection)
PvlObject History()
Creates an application history PvlObject.
This is free and unencumbered software released into the public domain.
static QString HostName()
Returns the host name.