Murl Engine Lua Addon API  Version 1.0 beta
Murl.System

System-specific classes and functions.

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


Table members

Classes


Murl.System.Console
Murl.System.DateTime
Murl.System.File
Murl.System.Time

Functions


Murl.System.Init()

Initialize the System module. This method is called by the engine's Murl::Engine::Init() method.

Boolean Init()

Returns
Boolean true if successful.

Murl.System.DeInit()

Deinitialize the System module. This method is called by the engine's Murl::Engine::DeInit() method.

Boolean DeInit()

Returns
Boolean true if successful.

Murl.System.Sleep(sleepTime)

Sleep for a specified time.

Sleep(Murl.System.Time sleepTime)

Parameters
sleepTimeThe time to sleep.

Murl.System.IsHostLittleEndian()

Check for a little endian host.

Boolean IsHostLittleEndian()

Returns
Boolean true if the host is a little endian machine.

Murl.System.IsHostBigEndian()

Check for a big endian host.

Boolean IsHostBigEndian()

Returns
Boolean true if the host is a big endian machine.

Murl.System.SwapEndianness(value)

Swap the endianness of a 64 bit integer value.

Integer SwapEndianness(Integer value)

Parameters
valueThe integer to convert.
Returns
Integer The byte-swapped integer.

Murl.System.BigEndianToHost(value)

Convert a big endian ordered 64 bit integer to host byte ordering.

Integer BigEndianToHost(Integer value)

Parameters
valueThe big endian integer to convert.
Returns
Integer The integer in host byte ordering.

Murl.System.LittleEndianToHost(value)

Convert a little endian ordered 64 bit integer to host byte ordering.

Integer LittleEndianToHost(Integer value)

Parameters
valueThe little endian integer to convert.
Returns
Integer The integer in host byte ordering.

Murl.System.HostToBigEndian(value)

Convert a host ordered 64 bit integer to big endian byte ordering.

Integer HostToBigEndian(Integer value)

Parameters
valueThe host integer to convert.
Returns
Integer The integer in big endian byte ordering.

Murl.System.HostToLittleEndian(value)

Convert a host ordered 64 bit integer to little endian byte ordering.

Integer HostToLittleEndian(Integer value)

Parameters
valueThe host integer to convert.
Returns
Integer The integer in little endian byte ordering.

Murl.System.GetAbsolutePathOfCurrentExecutable()

Get the absolute path of the currently running executable. Platforms not supporting this will return an empty string.

String GetAbsolutePathOfCurrentExecutable()

Returns
String The absolute path to the currently running executable.

Murl.System.GetNameOfShellExecutable(path, name)

Get the fully qualified name of a command line executable.

String GetNameOfShellExecutable(String path, String name)

Parameters
pathThe path to the executable
nameThe name of the executable
Returns
String The full path.

Murl.System.GetNameOfGuiExecutable(path, name)

Get the fully qualified name of a GUI executable.

String GetNameOfGuiExecutable(String path, String name)

Parameters
pathThe path to the executable
nameThe name of the executable
Returns
String The full path.

Murl.System.DemangleTypeName(name)

Demangle a RTTI name. Convert a RTTI name to a human readable string.

include <typeinfo>
String className = System::DemangleTypeName(typeid(MyClass).name());

String DemangleTypeName(String name)

Parameters
nameThe RTTI name to demangle.
Returns
String The demangled name.