CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkLogListener Struct Referenceabstract

#include <Libs/PluginFramework/service/log/ctkLogListener.h>

Public Member Functions

virtual void logged (ctkLogEntryPtr entry)=0
 
virtual ~ctkLogListener ()
 

Detailed Description

Subscribes to ctkLogEntry objects from the ctkLogReaderService.

ctkLogListener objects may be registered with the Framework service registry. After the listener is registered, the logged(ctkLogEntryPtr) method will be called for each ctkLogEntry object created.

Qt slots can also be used to be notified about new ctkLogEntry objects. See ctkLogReaderService::connectLogListener().

Remarks
This class is thread safe.
See also
ctkLogReaderService
ctkLogEntry
ctkLogReaderService::connectLogListener()
ctkLogReaderService::disconnectLogListener()

Definition at line 48 of file ctkLogListener.h.

Constructor & Destructor Documentation

◆ ~ctkLogListener()

virtual ctkLogListener::~ctkLogListener ( )
inlinevirtual

Definition at line 50 of file ctkLogListener.h.

Member Function Documentation

◆ logged()

virtual void ctkLogListener::logged ( ctkLogEntryPtr  entry)
pure virtual

Listener method called for each ctkLogEntry object created.

As with all event listeners, this method should return to its caller as soon as possible.

Parameters
entryA ctkLogEntry object containing log information.
See also
ctkLogEntry

The documentation for this struct was generated from the following file: