class System

namespace sys.core.lang
class System

A class representing system information and IO.

Methods

GetEnvVariable

static def GetEnvVariable(var: String): String;

Brief

Returns and environment variable.

Parameters

var the name of the variable

Returns

the content of the variable as a string

AddArgument

static def AddArgument(arg: String);

Brief

Modifies the command line of the currently running application by adding an argument.

Reserved for system use.

Parameters

arg the argument to add

Properties

CPU

property CPU: ref SystemCPU; get;

Brief

The installed CPU information.


Args

property Args: const ref Vector; get;

Brief

The current application command line stored as a vector.

Variables

Debug

val Debug;

Brief

Debug mode asserter and error reporter.


Trace

val Trace;

Brief

Trace mode asserter and error reporter.


Out

val Out;

Brief

STDOUT stream.


In

val In;

Brief

STDIN stream.