Norbert's Game Engine v200
Loading...
Searching...
No Matches
eConsole Class Reference

#include <Console.hpp>

Inheritance diagram for eConsole:
eBase

Static Public Member Functions

static void Print (eString msg)
 Print the string.
 
static void PrintLine (eString msg)
 Print the string in a new line.
 
static void PrintLog (eString head, eString msg)
 Print a log.
 
static void Clear ()
 Clear the console.
 
static eString Get ()
 Returns the console text.
 
static void WriteToDisk ()
 Write the console text to a crash file called 'CRASH.log'.
 

Additional Inherited Members

- Public Member Functions inherited from eBase
template<typename T >
T * Cast (eBase *obj)
 Cast class to base.
 

Detailed Description

Console will output any issues or infos during runtime

Definition at line 12 of file Console.hpp.

Member Function Documentation

◆ Clear()

void eConsole::Clear ( )
static

Clear the console.

Definition at line 28 of file Console.cpp.

29{
30 mLog.Clear();
31}
void Clear()
Clear text.
Definition String.cpp:58

◆ Get()

eString eConsole::Get ( )
static

Returns the console text.

Definition at line 34 of file Console.cpp.

35{
36 return mLog;
37}

◆ Print()

void eConsole::Print ( eString msg)
static

Print the string.

Definition at line 10 of file Console.cpp.

11{
12 mLog += msg;
13}

◆ PrintLine()

void eConsole::PrintLine ( eString msg)
static

Print the string in a new line.

Definition at line 16 of file Console.cpp.

17{
18 mLog += eString("\n") + msg;
19}

◆ PrintLog()

void eConsole::PrintLog ( eString head,
eString msg )
static

Print a log.

Definition at line 22 of file Console.cpp.

23{
24 mLog += eString("\n") + head + eString(": ") + msg;
25}

◆ WriteToDisk()

void eConsole::WriteToDisk ( )
static

Write the console text to a crash file called 'CRASH.log'.

Definition at line 40 of file Console.cpp.

41{
42 EDR::WriteFile("CRASH.log", strg(mLog.Get()));
43}
const char * Get()
Return text as c-string.
Definition String.cpp:64
void WriteFile(const char *dir, strg content)
Write a file to drive.
Definition EDR.cpp:405

The documentation for this class was generated from the following files: