27 Log(std::string content);
32 virtual void draw()
const;
56 virtual uint64_t
getIconId()
const override;
71 virtual uint64_t
getIconId()
const override;
86 virtual uint64_t
getIconId()
const override;
101 virtual uint64_t
getIconId()
const override;
114 virtual void draw()
override;
143 static void logInfo(std::string text);
157 static void logError(std::string text);
175 static std::vector<std::shared_ptr<Log>>
_logs;
A log representing error messages.
Definition: ConsoleWidget.hpp:92
virtual uint64_t getIconId() const override
Get the icon identifier for error logs.
Definition: ConsoleWidget.cpp:23
A base class for logs that contain textual content.
Definition: ConsoleWidget.hpp:20
virtual uint64_t getIconId() const =0
Virtual method to retrieve an icon identifier associated with the log.
Log(std::string content)
Constructor to create a log with the specified content.
Definition: ConsoleWidget.cpp:11
virtual void draw() const
Virtual method to draw the log in the user interface.
Definition: ConsoleWidget.cpp:13
std::string _content
The text content of the log.
Definition: ConsoleWidget.hpp:41
A log representing informational messages.
Definition: ConsoleWidget.hpp:62
virtual uint64_t getIconId() const override
Get the icon identifier for informational logs.
Definition: ConsoleWidget.cpp:21
A log representing success messages.
Definition: ConsoleWidget.hpp:77
virtual uint64_t getIconId() const override
Get the icon identifier for success logs.
Definition: ConsoleWidget.cpp:22
A log representing verbose messages.
Definition: ConsoleWidget.hpp:47
virtual uint64_t getIconId() const override
Get the icon identifier for verbose logs.
Definition: ConsoleWidget.cpp:20