publisher.h
Go to the documentation of this file.
1 
23 #ifndef PUBLISHER_H_
24 #define PUBLISHER_H_
25 
26 #include <string>
27 #include <iostream>
28 #include <vector>
29 #include "ccpp_dds_dcps.h"
30 #include "check_status.h"
31 #include "ccpp_GSDFPacket.h"
32 #include "example_main.h"
33 
34 using namespace DDS;
35 
36 namespace opensplice_dds_broker{
37  class Publisher
38  {
39  public:
40  Publisher(const std::string& topic_name);
41  void publish(const GSDFPacket& packet);
42  ~Publisher();
43  private:
44  DomainId_t domain;
45  const char *topic_name_;
47 
48  DomainParticipantFactory_var dpf;
49  DomainParticipant_var participant;
50  Topic_var GSDFPacketTopic;
51  Publisher_var publisher_;
52  DataWriter_ptr parentWriter;
53  TopicQos topic_qos;
54  PublisherQos pub_qos;
55  DataWriterQos dw_qos;
56 
57  ReturnCode_t status;
58 
61  };
62 };
63 
64 #endif
DomainParticipantFactory_var dpf
Definition: publisher.h:48
DomainParticipant_var participant
Definition: publisher.h:49
DDS_DCPSInterface_var< GSDFPacketDataWriter > GSDFPacketDataWriter_var
GSDFPacketTypeSupportInterface_var GSDFPacketTypeSupport_var
GSDFPacketTypeSupport_var GSDFPacketTS
Definition: publisher.h:59
GSDFPacketDataWriter_var GSDFPacketDW
Definition: publisher.h:60


opensplice_dds_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:23