CoreDX DDS Modern C++ API
Publisher Use Cases

Create a Publisher

Create a Publisher with all default QoS policies and no listener.

#include <dds/domain/ddsdomain.hpp>
#include <dds/pub/ddspub.hpp>
dds::pub::Publisher publisher( participant );

Create a Publisher with modified QoS policies and no listener.

#include <dds/domain/ddsdomain.hpp>
#include <dds/pub/ddspub.hpp>
dds::pub::Publisher publisher( participant, qos );

Create a Publisher with modified QoS policies and a listener.

#include <dds/domain/ddsdomain.hpp>
#include <dds/pub/ddspub.hpp>
class ExamplePubListener : public dds::pub::NoOpPublisherListener { ... };
ExamplePubListener * pubListener = new ExamplePubListener;
dds::pub::Publisher publisher( participant, qos, pubListener, dds::core::status::StatusMask::all() );

© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.