 |
Blamite Game Engine - Strings
00313.05.23.21.2038.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
9 #define STRINGS_API __declspec(dllexport)
11 #define STRINGS_API __declspec(dllimport)
14 #define LOGGER_ID_GUERILLA 1
15 #define LOGGER_ID_KEYSTONE 2
16 #define LOGGER_ID_STRINGS 3
17 #define LOGGER_ID_TOOL 4
83 std::string message =
"";
84 std::string timestamp =
"";
97 std::string GetMessageLine();
125 bool print_to_stdout =
false;
127 std::vector<BlamBasicLogMessage> history = std::vector<BlamBasicLogMessage>();
128 std::vector<BlamLogReceiver*> receivers = std::vector<BlamLogReceiver*>();
156 std::vector<BlamBasicLogMessage>
GetHistory();
Interface used to receive log messages.
Definition: logger.h:103
@ Input
Indicates that the user has executed a command from console.
Class represneting a basic log message.
Definition: logger.h:78
STRINGS_API std::string GenerateLogLevelPrefix(BlamLogLevel log_level)
Generates a prefix for a given log level, such as [INFO] or [WARN].
Definition: logger.cpp:7
virtual void LogMessageReceived(BlamBasicLogMessage message)
Called whenever a log message is received.
Definition: logger.h:111
TerminalColor
Enumerator listing all possible terminal colors.
Definition: logger.h:27
BlamLogLevel
Enumerator to specify log event severity.
Definition: logger.h:52
@ Warning
Indicates a warning message. Not something critical, but something that could cause unexpected behavi...
STRINGS_API TerminalColor TranslateLogLevelAsColor(BlamLogLevel log_level)
Translates a given BlamLogLevel into the appropriate terminal color.
Definition: logger.cpp:29
@ AiError
Placeholder for the future, indicates an error with AI.
@ Severe
Indicates a severe error that the engine cannot recover from.
@ None
Indicates no severity, and is displayed with no formatting.
#define STRINGS_API
Definition: logger.h:11
Namespace containing functions related to the logger.
Definition: logger.h:198
Class representing a basic logger.
Definition: logger.h:122
@ Error
Indicates an error that could cause engine instability.
STRINGS_API void PrintMessageToStdout(std::string message, TerminalColor color)
Prints a message to the standard output.
Definition: logger.cpp:49