Medical Imaging Interaction Toolkit
2016.11.0
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()
This interface is not intended to be implemented by clients.
Definition at line 40 of file berryILog.h.
|
virtual |
Definition at line 21 of file berryILog.cpp.
|
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 |