OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Static Public Member Functions | List of all members
openstudio::System Class Reference

#include <System.hpp>

Static Public Member Functions

static boost::optional
< std::string > 
getenv (const std::string &name) noexcept
 
static void msleep (int msecs)
 Sleep for number of milliseconds. More...
 
static unsigned numberOfProcessors ()
 Returns the number of processors on this computer. More...
 
static void setenv (const std::string &name, const std::string &value)
 
static boost::optional< TimesystemIdleTime ()
 Returns the time that the system has been idle. More...
 
static void testExceptions1 ()
 Utility for testing exception handling within the system. More...
 
static void testExceptions2 ()
 
static void testExceptions3 ()
 
static void testExceptions4 ()
 
static void testExceptions5 ()
 

Member Function Documentation

static boost::optional<std::string> openstudio::System::getenv ( const std::string &  name)
staticnoexcept
Note
not using string_view because we need null terminated strings
static void openstudio::System::msleep ( int  msecs)
static

Sleep for number of milliseconds.

static unsigned openstudio::System::numberOfProcessors ( )
static

Returns the number of processors on this computer.

static void openstudio::System::setenv ( const std::string &  name,
const std::string &  value 
)
static
Note
not using string_view because we need null terminated strings
static boost::optional<Time> openstudio::System::systemIdleTime ( )
static

Returns the time that the system has been idle.

static void openstudio::System::testExceptions1 ( )
static

Utility for testing exception handling within the system.

static void openstudio::System::testExceptions2 ( )
static
static void openstudio::System::testExceptions3 ( )
static
static void openstudio::System::testExceptions4 ( )
static
static void openstudio::System::testExceptions5 ( )
static