Murl::System Namespace Reference

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...
 
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...
 

Detailed Description

System-specific classes and functions.

The system namespace implements access to the operation system and C-runtime library to ensure cross-platform compatibility.

Function Documentation

◆ StringToUInt64()

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.

Parameters
inputStringThe string to convert.
valueThe return value.
numCharsThe number of characters consumed return value.
baseThe base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix.
Returns
true if conversion was successful, if the conversion failed the value parameter is unchanged and false is returned.

◆ StringToSInt64()

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.

Parameters
inputStringThe string to convert.
valueThe return value.
numCharsThe number of characters consumed return value.
baseThe base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix.
Returns
true if conversion was successful, if the conversion failed the value parameter is unchanged and false is returned.

◆ StringToUInt32()

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.

Parameters
inputStringThe string to convert.
valueThe return value.
numCharsThe number of characters consumed return value.
baseThe base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix.
Returns
true if conversion was successful, if the conversion failed the value parameter is unchanged and false is returned.

◆ StringToSInt32()

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.

Parameters
inputStringThe string to convert.
valueThe return value.
numCharsThe number of characters consumed return value.
baseThe base of the number, if zero the base is octal for prefix "0", hexadecimal for prefix "0x" or decimal if no prefix.
Returns
true if conversion was successful, if the conversion failed the value parameter is unchanged and false is returned.

◆ StringToDouble()

Bool Murl::System::StringToDouble ( const String inputString,
Double value,
UInt32 numChars 
)

Convert a string to a Double value.

The conversion ignores leading and trailing whitespaces. The decimal separator is the '.' character (locale independent).

Parameters
inputStringThe string to convert.
valueThe return value.
numCharsThe number of characters consumed return value.
Returns
true if conversion was successful, if the conversion failed the value parameter is unchanged and false is returned.

◆ StringToFloat()

Bool Murl::System::StringToFloat ( const String inputString,
Float value,
UInt32 numChars 
)

Convert a string to a Float value.

The conversion ignores leading and trailing whitespaces. The decimal separator is the '.' character (locale independent).

Parameters
inputStringThe string to convert.
valueThe return value.
numCharsThe number of characters consumed return value.
Returns
true if conversion was successful, if the conversion failed the value parameter is unchanged and false is returned.


Copyright © 2011-2018 Spraylight GmbH.