GCP Assignment 1
Functions
Core::Logging Namespace Reference

A namespace that contains logging functions for use within the code. More...

Functions

void logI (std::string message)
 Logs the information message, this prints the message to the log file by default. More...
 
void logE (std::string message)
 Logs the error message, this prints the message to the log file by default. More...
 
void logMat4 (Maths::Mat4 testMat)
 Logs the mat4, this prints the mat4 to the log file by default. More...
 
void logI (std::string message, bool printToLog)
 Logs the information message. More...
 
void logE (std::string message, bool printToLog)
 Logs the error message. More...
 
void logMat4 (Maths::Mat4 testMat, bool printToLog)
 Logs the mat4, this prints the mat4 to the log file by default. More...
 
void printToLogFile (std::string message)
 Prints the message out into the log file. More...
 
std::string getCurrentDateAndTime ()
 Gets the current date and time in the form of a string. More...
 
std::string boolToString (bool booleanIn)
 Converts a boolean to a string. More...
 

Detailed Description

A namespace that contains logging functions for use within the code.

Function Documentation

◆ boolToString()

std::string Core::Logging::boolToString ( bool  booleanIn)

Converts a boolean to a string.

Parameters
booleanInThe boolean to be converted.
Returns
The boolean as a string.

◆ getCurrentDateAndTime()

std::string Core::Logging::getCurrentDateAndTime ( )

Gets the current date and time in the form of a string.

Returns
The current date and time.

◆ logE() [1/2]

void Core::Logging::logE ( std::string  message)

Logs the error message, this prints the message to the log file by default.

Parameters
messageThe message.
Here is the caller graph for this function:

◆ logE() [2/2]

void Core::Logging::logE ( std::string  message,
bool  printToLog 
)

Logs the error message.

Parameters
messageThe message.
printToLogA boolean for whether to print to the log.
Here is the call graph for this function:

◆ logI() [1/2]

void Core::Logging::logI ( std::string  message)

Logs the information message, this prints the message to the log file by default.

Parameters
messageThe message.
Here is the caller graph for this function:

◆ logI() [2/2]

void Core::Logging::logI ( std::string  message,
bool  printToLog 
)

Logs the information message.

Parameters
messageThe message.
printToLogA boolean for whether to print to the log.
Here is the call graph for this function:

◆ logMat4() [1/2]

void Core::Logging::logMat4 ( Maths::Mat4  testMat)

Logs the mat4, this prints the mat4 to the log file by default.

Parameters
matrixThe mat4 to log.

◆ logMat4() [2/2]

void Core::Logging::logMat4 ( Maths::Mat4  testMat,
bool  printToLog 
)

Logs the mat4, this prints the mat4 to the log file by default.

Parameters
matrixThe mat4 to log.
printToLogA boolean for whether to print to the log.
Here is the call graph for this function:

◆ printToLogFile()

void Core::Logging::printToLogFile ( std::string  message)

Prints the message out into the log file.

Parameters
messageThe message.
Here is the call graph for this function:
Here is the caller graph for this function: