SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Runtime
Struct StdOut

NonConstructibleType
   |
   +-StdOut

Implemented in:
Platform.Runtime.h

struct StdOut:
private NonConstructibleType

Standard Output printer.

Method Summarycollapse
static Void captureInto(const Io::File* file)
          Captures the output into a file.
static Void fprint(const Char* string, ...)
          Writes a formatted string to the standard output.
static Void fprint(const String& string, ...)
          Writes a formatted string to the standard output.
static Void fprintln(const Char* string, ...)
          Writes a formatted string followed by a new line character to the standard output.
static Void fprintln(const String& string, ...)
          Writes a formatted string followed by a new line character to the standard output.
static Void print(const Char* string)
          Writes a string to the standard output.
static Void print(const String& string)
          Writes a string to the standard output.
static Void println()
          Writes a new line to the standard output.
static Void println(const Char* string)
          Writes a string followed by a new line character to the standard output.
static Void println(const String& string)
          Writes a string followed by a new line character to the standard output.

 

Method Detail

captureInto[nothrow]

static Void captureInto(const Io::File* file)

Captures the output into a file. The file object must have been allocated using operator new. If the file argument is Null then capturing is disabled and the previously set file (if any) is deleted automatically.

Parameters:
file - a file to capture standard output into, or Null to disable capturing
Remarks:
the platform will automatically deallocate the resources associated with the file used for capturing of standard output upon program termination

fprint[nothrow]

static Void fprint(const Char* string, ...)

Writes a formatted string to the standard output.

Parameters:
string - a string
... - optional arguments
See Also:
Str::format

fprint[nothrow]

static Void fprint(const String& string, ...)

Writes a formatted string to the standard output.

Parameters:
string - a string
... - optional arguments
See Also:
Str::format

fprintln[nothrow]

static Void fprintln(const Char* string, ...)

Writes a formatted string followed by a new line character to the standard output.

Parameters:
string - a string
... - optional arguments
See Also:
Str::format

fprintln[nothrow]

static Void fprintln(const String& string, ...)

Writes a formatted string followed by a new line character to the standard output.

Parameters:
string - a string
... - optional arguments
See Also:
Str::format

print[nothrow]

static Void print(const Char* string)

Writes a string to the standard output.

Parameters:
string - a string

print[nothrow]

static Void print(const String& string)

Writes a string to the standard output.

Parameters:
string - a string

println[nothrow]

static Void println()

Writes a new line to the standard output.


println[nothrow]

static Void println(const Char* string)

Writes a string followed by a new line character to the standard output.

Parameters:
string - a string

println[nothrow]

static Void println(const String& string)

Writes a string followed by a new line character to the standard output.

Parameters:
string - a string


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND