BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Utility functions getCurrentDateAndTime, enableFloatingPointExceptions. More...
Functions | |
void | enableFloatingPointExceptions () |
Enables exception throw in the case of NaN, Inf. More... | |
std::string | getCurrentDateAndTime () |
std::string | getenv (const std::string &name) |
Returns environment variable. More... | |
bool | isWindowsHost () |
Returns true if operation system is Windows. More... | |
Utility functions getCurrentDateAndTime, enableFloatingPointExceptions.
void SysUtils::enableFloatingPointExceptions | ( | ) |
Enables exception throw in the case of NaN, Inf.
enables exception throw in the case of NaN, Inf
Definition at line 33 of file SysUtils.cpp.
std::string SysUtils::getCurrentDateAndTime | ( | ) |
Definition at line 22 of file SysUtils.cpp.
std::string SysUtils::getenv | ( | const std::string & | name | ) |
Returns environment variable.
Definition at line 48 of file SysUtils.cpp.
References RealSpace::Particles::name().
Referenced by ActionManager::createMenus(), and PyUtils::pythonRuntimeInfo().
bool SysUtils::isWindowsHost | ( | ) |
Returns true if operation system is Windows.
Definition at line 56 of file SysUtils.cpp.