How to offer and subscribe to a topic

Topics provide a convenient way of realize a publish-subscribe mechanism. This is useful if the number of recievers may vary. There might be 0, 1 or multiple components that implement an interface and hence retrieve the published data.

  • Retrieve data
    The component which should receive the data must implement the corresponding interface. To register the method, call the following method within the onInitComponent section of your component:
    void usingTopic(const std::string &name, bool orderedPublishing=false)
    Registers a proxy for subscription after initialization.
    Definition ManagedIceObject.cpp:254

Further details can be found in Distributed Processing.