#include <DDSPublisher.h>
List of all members.
Detailed Description
The Publisher implementation of ACS Notification Channel based on DDS.
The template requires the DataWriter_var class that is specific to the data type defined in the idl and registered in the topic.
- See also:
- DDSHelper
- Author:
- Jorge Avarias <javarias[at]inf.utfsm.cl>
Constructor & Destructor Documentation
ddsnc::DDSPublisher::DDSPublisher |
( |
const char * |
channelName |
) |
[inline] |
ddsnc::DDSPublisher::~DDSPublisher |
( |
|
) |
[inline] |
Member Function Documentation
int ddsnc::DDSPublisher::attachToTransport |
( |
|
) |
[private] |
int ddsnc::DDSPublisher::createPublisher |
( |
|
) |
[private] |
Creates the publisher with default QoS or Qos with a partition
- See also:
- initialize()
void ddsnc::DDSPublisher::initialize |
( |
|
) |
[private] |
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.
void ddsnc::DDSPublisher::initializeDataWriter |
( |
|
) |
[private] |
Initialize the DataWriter with QoS
- Template Parameters:
-
- See also:
- dwQos
template<class D , class DW , class DWVAR , class TSV , class TSI >
void ddsnc::DDSPublisher::publishData |
( |
D |
data |
) |
[inline] |
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.
- Parameters:
-
| data | the data to be published |
- Template Parameters:
-
| D | <type> class |
| DW | <type>DataWriter class |
| TSV | <type>TypeSupport_var class |
| TSI | <type>TypeSupportImpl class |
Member Data Documentation
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.
- See also:
- initializeDataWriter()
-
publishData(D data)
The documentation for this class was generated from the following file: