![]() |
Murl Engine API
Version 2018.3
|
System-specific classes and functions. More...
Namespaces | |
CLib | |
System C-runtime library functions. | |
Classes | |
class | AtomicSInt32 |
The atomic integer class. More... | |
class | Console |
The console printing class. More... | |
class | DateTime |
The date and time class provides date and time members. More... | |
class | File |
The system file access class. More... | |
class | Locker |
The locker class for scoped Mutex locking. More... | |
class | Mutex |
The mutex class. More... | |
class | Semaphore |
The semaphore class for thread synchronization. More... | |
class | Socket |
IPV4 socket class. More... | |
class | SocketAddress |
IPV4 socket address class. More... | |
class | Thread |
The thread base class. More... | |
class | Time |
The time class provides high resolution time data. More... | |
Typedefs | |
typedef Array< Socket * > | SocketArray |
Definition of the socket array. | |
Functions | |
Bool | Init () |
Initialize the System module. More... | |
Bool | DeInit () |
Deinitialize the System module. More... | |
void | Sleep (const Time &sleepTime) |
Sleep for a specified time. More... | |
Bool | IsHostLittleEndian () |
Check for a little endian host. More... | |
Bool | IsHostBigEndian () |
Check for a big endian host. More... | |
UInt16 | SwapEndianness (UInt16 value) |
Swap the endianness of a 16 bit integer value. More... | |
UInt32 | SwapEndianness (UInt32 value) |
Swap the endianness of a 32 bit integer value. More... | |
UInt64 | SwapEndianness (UInt64 value) |
Swap the endianness of a 64 bit integer value. More... | |
UInt16 | BigEndianToHost (UInt16 value) |
Convert a big endian ordered 16 bit integer to host byte ordering. More... | |
UInt16 | LittleEndianToHost (UInt16 value) |
Convert a little endian ordered 16 bit integer to host byte ordering. More... | |
UInt16 | HostToBigEndian (UInt16 value) |
Convert a host ordered 16 bit integer to big endian byte ordering. More... | |
UInt16 | HostToLittleEndian (UInt16 value) |
Convert a host ordered 16 bit integer to little endian byte ordering. More... | |
UInt32 | BigEndianToHost (UInt32 value) |
Convert a big endian ordered 32 bit integer to host byte ordering. More... | |
UInt32 | LittleEndianToHost (UInt32 value) |
Convert a little endian ordered 32 bit integer to host byte ordering. More... | |
UInt32 | HostToBigEndian (UInt32 value) |
Convert a host ordered 32 bit integer to big endian byte ordering. More... | |
UInt32 | HostToLittleEndian (UInt32 value) |
Convert a host ordered 32 bit integer to little endian byte ordering. More... | |
UInt64 | BigEndianToHost (UInt64 value) |
Convert a big endian ordered 64 bit integer to host byte ordering. More... | |
UInt64 | LittleEndianToHost (UInt64 value) |
Convert a little endian ordered 64 bit integer to host byte ordering. More... | |
UInt64 | HostToBigEndian (UInt64 value) |
Convert a host ordered 64 bit integer to big endian byte ordering. More... | |
UInt64 | HostToLittleEndian (UInt64 value) |
Convert a host ordered 64 bit integer to little endian byte ordering. More... | |
String | GetAbsolutePathOfCurrentExecutable () |
Get the absolute path of the currently running executable. More... | |
String | GetNameOfShellExecutable (const String &path, const String &name) |
Get the fully qualified name of a command line executable. More... | |
String | GetNameOfGuiExecutable (const String &path, const String &name) |
Get the fully qualified name of a GUI executable. More... | |
String | DemangleTypeName (const Char *name) |
Demangle a RTTI name. More... | |
Bool | StringToUInt64 (const String &inputString, UInt64 &value, UInt32 &numChars, UInt32 base) |
Convert a string to a UInt64 value. More... | |
Bool | StringToSInt64 (const String &inputString, SInt64 &value, UInt32 &numChars, UInt32 base) |
Convert a string to a SInt64 value. More... | |
Bool | StringToUInt32 (const String &inputString, UInt32 &value, UInt32 &numChars, UInt32 base) |
Convert a string to a UInt32 value. More... | |
Bool | StringToSInt32 (const String &inputString, SInt32 &value, UInt32 &numChars, UInt32 base) |
Convert a string to a SInt32 value. More... | |
Bool | StringToDouble (const String &inputString, Double &value, UInt32 &numChars) |
Convert a string to a Double value. More... | |
Bool | StringToFloat (const String &inputString, Float &value, UInt32 &numChars) |
Convert a string to a Float value. More... | |
System-specific classes and functions.
The system namespace implements access to the operation system and C-runtime library to ensure cross-platform compatibility.
Bool Murl::System::StringToUInt64 | ( | const String & | inputString, |
UInt64 & | value, | ||
UInt32 & | numChars, | ||
UInt32 | base | ||
) |
Convert a string to a UInt64 value.
The conversion ignores leading and trailing whitespaces.
inputString | The string to convert. |
value | The return value. |
numChars | The number of characters consumed return value. |
base | The base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix. |
Bool Murl::System::StringToSInt64 | ( | const String & | inputString, |
SInt64 & | value, | ||
UInt32 & | numChars, | ||
UInt32 | base | ||
) |
Convert a string to a SInt64 value.
The conversion ignores leading and trailing whitespaces.
inputString | The string to convert. |
value | The return value. |
numChars | The number of characters consumed return value. |
base | The base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix. |
Bool Murl::System::StringToUInt32 | ( | const String & | inputString, |
UInt32 & | value, | ||
UInt32 & | numChars, | ||
UInt32 | base | ||
) |
Convert a string to a UInt32 value.
The conversion ignores leading and trailing whitespaces.
inputString | The string to convert. |
value | The return value. |
numChars | The number of characters consumed return value. |
base | The base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix. |
Bool Murl::System::StringToSInt32 | ( | const String & | inputString, |
SInt32 & | value, | ||
UInt32 & | numChars, | ||
UInt32 | base | ||
) |
Convert a string to a SInt32 value.
The conversion ignores leading and trailing whitespaces.
inputString | The string to convert. |
value | The return value. |
numChars | The number of characters consumed return value. |
base | The base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix. |
Convert a string to a Double value.
The conversion ignores leading and trailing whitespaces. The decimal separator is the '.' character (locale independent).
inputString | The string to convert. |
value | The return value. |
numChars | The number of characters consumed return value. |
Convert a string to a Float value.
The conversion ignores leading and trailing whitespaces. The decimal separator is the '.' character (locale independent).
inputString | The string to convert. |
value | The return value. |
numChars | The number of characters consumed return value. |