Isis 3 Programmer Reference
|
#include <Environment.h>
Static Public Member Functions | |
static QString | userName () |
@Returns the user name. | |
static QString | hostName () |
static QString | isisVersion () |
static QString | getEnvironmentValue (QString, QString) |
Static Private Attributes | |
static Environment | automaticEnvironmentSetup |
Construct an environment in static space to initialize some global Isis environment options. | |
2011-09-20 Steven Lambright - Added support for 4 line version file.
2012-03-06 Steven Lambright - Added automatic environment setup that works with every Isis application. This includes the 'qisis' applications. The automatic setup is setting the Qt plugin path because picking up a plugin from the OS means crashing with an error like: Cannot mix incompatible Qt library (version 0x40704) with this library (version 0x40800) Fixes #742.
2012-11-02 Steven Lambright - Updated automatic environment setup to fix a library dependency problem (that is ignoring our plugin path setting) with QDBus. Fixes #1228.
2106-06-20 Kris Becker - Porting to Qt5.6 requires a different Qt startup strategy. See QStartup().
Definition at line 36 of file Environment.h.
|
inline |
Definition at line 38 of file Environment.h.
|
protected |
Definition at line 45 of file Environment.cpp.
|
static |
variable | The environment variable to get |
defaultValue | The returned value for variable if variable doesn't exist. |
Definition at line 92 of file Environment.cpp.
Referenced by hostName(), and userName().
|
static |
Definition at line 80 of file Environment.cpp.
References getEnvironmentValue().
Referenced by Isis::Application::HostName().
|
static |
Definition at line 108 of file Environment.cpp.
References Isis::IException::Programmer.
Referenced by Isis::Application::Version().
|
static |
@Returns the user name.
Returns 'Unknown' if it cannot find the user name.
Definition at line 72 of file Environment.cpp.
References getEnvironmentValue().
Referenced by Isis::Project::clear(), Isis::Project::Project(), and Isis::Application::UserName().
|
staticprivate |
Construct an environment in static space to initialize some global Isis environment options.
This initialization applies to anything that links against the Isis library.
Definition at line 55 of file Environment.h.