Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
#include <berryILog.h>
Public Member Functions | |
virtual | ~ILog () |
virtual void | AddLogListener (ILogListener *listener)=0 |
virtual QSharedPointer< ctkPlugin > | GetBundle () const =0 |
virtual void | Log (const SmartPointer< IStatus > &status)=0 |
virtual void | RemoveLogListener (ILogListener *listener)=0 |
A log to which status events can be written. Logs appear on individual plug-ins and on the platform itself. Clients can register log listeners which will receive notification of all log events as they come in.
XXX Need to create a new log interface on common plugin. That interface should be a super interface of this ILog. getBundle() would stay here. In the super interface we would have getName()
Definition at line 36 of file berryILog.h.
|
virtual |
|
pure virtual |
Adds the given log listener to this log. Subsequently the log listener will receive notification of all log events passing through this log. This method has no effect if the identical listener is already registered on this log.
listener | the listener to add to this log |
|
pure virtual |
Returns the plug-in with which this log is associated.
|
pure virtual |
Logs the given status. The status is distributed to the log listeners installed on this log and then to the log listeners installed on the platform.
status | the status to log |
|
pure virtual |
Removes the given log listener to this log. Subsequently the log listener will no longer receive notification of log events passing through this log. This method has no effect if the identical listener is not registered on this log.
listener | the listener to remove |