Reporterclass handles messages passed to the system report chain.
class Reporter : public ListElement<Reporter>
Reporter(ReportCallback *callback, void *cookie = nullptr);
||The callback function to invoke when a message is reported.|
||The cookie that is passed to the report handler as its last parameter.|
Reporterclass encapsulates a callback function that is invoked when the
Engine::Reportfunction is called. Once an instance of the
Reporterclass has been constructed, it can be installed by calling the
When a message is reported, the callback functions corresponding to all installed reporters are invoked. The
ReportCallbacktype is defined as follows.
typedef void ReportCallback(const char *text, uint32 flags, void *cookie);
flagsparameters passed to the callback function pointed to by the
callbackparameter match those passed to the
cookieparameter passed to the callback function matches the
cookieparameter passed to the constructor of the
A reporter is uninstalled by destroying its associated class instance.
||Used internally to store all instances of |