Open CASCADE Technology
6.5.4
|
Set of Operating Sytem Dependent Tools
(O)perating (S)ystem (D)ependent
#include <OSD.hxx>
Static Public Member Functions | |
static DEFINE_STANDARD_ALLOC void | SetSignal (const Standard_Boolean aFloatingSignal=Standard_True) |
1) Arms some floating point signals, and sets a "Handler" for them. 2) Sets a "Handler" for the "Hardware" signals. For Win32 users: under VC++ you can control which method of handling exceptions is used by means of UseSETranslator method before calling SetSignal Warning: Some "Data Base Managers" use their own "Handler" for the signals such as "SIGSEGV". So if a "Handler" is set for a signal it will not be replaced by Standard "Handler". It is managed by OBJS preprocessor definition. | |
static Standard_Integer | AvailableMemory () |
Returns available memory in Kilobytes. | |
static void | SecSleep (const Standard_Integer aDelay) |
Commands the process to sleep for a number of seconds. | |
static void | MilliSecSleep (const Standard_Integer aDelay) |
Commands the process to sleep for a number of milliseconds | |
static Standard_Boolean | RealToCString (const Standard_Real aReal, Standard_PCharacter &aString) |
Converts aReal into aCstring in exponential format with a period as decimal point, no thousand separator and no grouping of digits. The conversion is independant from the current locale | |
static Standard_Boolean | CStringToReal (const Standard_CString aString, Standard_Real &aReal) |
Converts aCstring representing a real with a period as decimal point, no thousand separator and no grouping of digits into aReal . The conversion is independant from the current locale. | |
static Standard_Boolean | IsDivisible (const Standard_Real aDividend, const Standard_Real aDivisor) |
Tests if the quotient theDividend/theDivisor does not overflow | |
static Standard_Integer | GetExponent (const Standard_Real aReal) |
Returns the exponent in base 2 of a floating-point number. | |
static Standard_Real | GetMantissa (const Standard_Real aReal) |
Returns the mantissa of a floating-point number. | |
static void | ControlBreak () |
since Windows NT does not support 'SIGINT' signal like UNIX, then this method checks whether Ctrl-Break keystroke was or not. If yes then raises Exception_CTRL_BREAK. | |
static void | UseSETranslator (const Standard_Boolean useSE) |
Defines whether SetSignal must use _se_translator_function or SetUnhandledExceptionFilter and signal to catch system exceptions. The default behaviour is to use SE translator. Warning: Using SE translator method SetSignal should be called for each new created thread, while using the alternative method the exception handler is established once for the whole process and all its threads. This function takes effect only under VC++ compiler. | |
static Standard_Boolean | UseSETranslator () |
Returns the current value of the flag set by above method. |
static Standard_Integer OSD::AvailableMemory | ( | ) | [static] |
static void OSD::ControlBreak | ( | ) | [static] |
static Standard_Boolean OSD::CStringToReal | ( | const Standard_CString | aString, |
Standard_Real & | aReal | ||
) | [static] |
static Standard_Integer OSD::GetExponent | ( | const Standard_Real | aReal | ) | [static] |
static Standard_Real OSD::GetMantissa | ( | const Standard_Real | aReal | ) | [static] |
static Standard_Boolean OSD::IsDivisible | ( | const Standard_Real | aDividend, |
const Standard_Real | aDivisor | ||
) | [static] |
static void OSD::MilliSecSleep | ( | const Standard_Integer | aDelay | ) | [static] |
static Standard_Boolean OSD::RealToCString | ( | const Standard_Real | aReal, |
Standard_PCharacter & | aString | ||
) | [static] |
static void OSD::SecSleep | ( | const Standard_Integer | aDelay | ) | [static] |
static DEFINE_STANDARD_ALLOC void OSD::SetSignal | ( | const Standard_Boolean | aFloatingSignal = Standard_True | ) | [static] |
static void OSD::UseSETranslator | ( | const Standard_Boolean | useSE | ) | [static] |
static Standard_Boolean OSD::UseSETranslator | ( | ) | [static] |