#include <DDSPublisher.h>
Inheritance diagram for ddsnc::DDSPublisher< DWVAR >:
Public Member Functions | |
DDSPublisher (const char *channelName) | |
template<class D, class DW, class TSV, class TSI> void | publishData (D data) |
~DDSPublisher () | |
Public Attributes | |
DDS::DataWriterQos | dwQos |
Protected Attributes | |
DDS::PublisherQos | pubQos |
Private Member Functions | |
int | attachToTransport () |
void | initialize () |
template<class DW> void | initializeDataWriter () |
int | createPublisher () |
Private Attributes | |
DDS::Publisher_var | pub |
OpenDDS::DCPS::PublisherImpl * | pub_impl |
DDS::DataWriter_var | dw |
DWVAR | dataWriter |
DDS::InstanceHandle_t | handler |
The template requires the DataWriter_var class that is specific to the data type defined in the idl and registered in the topic.
DWVAR <type>DataWriter_var class
|
Constructor for DDSPublisher class, initializes the common objects required by a DDS Publisher.
|
|
|
|
|
|
Creates the publisher with default QoS or Qos with a partition
|
|
Create the participant, initialize the publisher with the partition provided in the channelName constructor parameter, if there is not partition initialize the publisher with default QoS properties, initialize the transport for the participant and finally initilize the data writer QoS to default. |
|
Initialize the DataWriter with QoS <type>DataWriter class
|
|
Publish the data to be sended to the subscribers, the data type must be defined in the idl file. If the class has been not initialized, it are initialized at this moment and it set as initialized. The <type> corresponds to the name of data type (without namespace) defined in the idl file, the classes required by the template are autogenerated by dcps_ts.pl tools and are specific to the data type defined.
|
|
|
|
|
|
Data Writer Qos, can be modified according OpenDDS API, the Qos properties will be applied when is called publishData for first time and they cannot be changed after that.
|
|
|
|
|
|
|
|
|