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 | Static Public Member Functions | List of all members
ctkEventBus::ctkTopicRegistry Class Reference

#include <Plugins/org.commontk.eventbus/ctkTopicRegistry.h>

Public Member Functions

void dump ()
 Dump of the topic hash. More...
 
bool isTopicRegistered (const QString topic) const
 Check if a topic is present in the topic hash. More...
 
const QObject * owner (const QString topic) const
 Return the owner of a topic. More...
 
bool registerTopic (const QString topic, const QObject *owner)
 Register a new topic. More...
 
void shutdown ()
 Destroy the singleton instance. To be called at the end of the application. More...
 
bool unregisterTopic (const QString topic)
 Unregister a topic. More...
 

Static Public Member Functions

static ctkTopicRegistryinstance ()
 Return an instance of the event bus. More...
 

Detailed Description

Class name: ctkTopicRegistry This singletone provides the registration of topic and topic owner in a hash.

Definition at line 24 of file ctkTopicRegistry.h.

Member Function Documentation

◆ dump()

void ctkEventBus::ctkTopicRegistry::dump ( )

Dump of the topic hash.

◆ instance()

static ctkTopicRegistry* ctkEventBus::ctkTopicRegistry::instance ( )
static

Return an instance of the event bus.

◆ isTopicRegistered()

bool ctkEventBus::ctkTopicRegistry::isTopicRegistered ( const QString  topic) const

Check if a topic is present in the topic hash.

◆ owner()

const QObject* ctkEventBus::ctkTopicRegistry::owner ( const QString  topic) const

Return the owner of a topic.

◆ registerTopic()

bool ctkEventBus::ctkTopicRegistry::registerTopic ( const QString  topic,
const QObject *  owner 
)

Register a new topic.

◆ shutdown()

void ctkEventBus::ctkTopicRegistry::shutdown ( )

Destroy the singleton instance. To be called at the end of the application.

◆ unregisterTopic()

bool ctkEventBus::ctkTopicRegistry::unregisterTopic ( const QString  topic)

Unregister a topic.


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