![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#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 ctkTopicRegistry * | instance () |
Return an instance of the event bus. More... | |
Class name: ctkTopicRegistry This singletone provides the registration of topic and topic owner in a hash.
Definition at line 24 of file ctkTopicRegistry.h.
void ctkEventBus::ctkTopicRegistry::dump | ( | ) |
Dump of the topic hash.
|
static |
Return an instance of the event bus.
bool ctkEventBus::ctkTopicRegistry::isTopicRegistered | ( | const QString | topic | ) | const |
Check if a topic is present in the topic hash.
const QObject* ctkEventBus::ctkTopicRegistry::owner | ( | const QString | topic | ) | const |
Return the owner of a topic.
bool ctkEventBus::ctkTopicRegistry::registerTopic | ( | const QString | topic, |
const QObject * | owner | ||
) |
Register a new topic.
void ctkEventBus::ctkTopicRegistry::shutdown | ( | ) |
Destroy the singleton instance. To be called at the end of the application.
bool ctkEventBus::ctkTopicRegistry::unregisterTopic | ( | const QString | topic | ) |
Unregister a topic.