MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
NddsTransport.h
Go to the documentation of this file.
1
#ifndef _NDDS_TRANSPORT_H_
2
#define _NDDS_TRANSPORT_H_
3
4
#include <string>
5
6
#include "
madara/knowledge/ThreadSafeContext.h
"
7
#include "
madara/transport/Transport.h
"
8
#include <ndds/ndds_cpp.h>
9
#include "madara/transport/ndds/Ndds_Knowledge_Update.h"
10
#include "madara/transport/ndds/Ndds_Knowledge_UpdateSupport.h"
11
#include "
madara/transport/ndds/NddsListener.h
"
12
13
namespace
madara
14
{
15
namespace
transport
16
{
22
class
NddsTransport
:
public
Base
23
{
24
public
:
25
33
NddsTransport
(
const
std::string
&
id
,
34
knowledge::ThreadSafeContext
& context,
35
TransportSettings
& config,
bool
launch_transport);
36
40
~NddsTransport
();
41
47
long
send_data
(
const
knowledge::KnowledgeRecords
& updates);
48
53
int
reliability
(
void
)
const
;
54
59
int
reliability
(
const
int
& setting);
60
64
void
close
(
void
);
65
71
int
setup
(
void
);
72
protected
:
73
private
:
74
75
const
static
char
*
topic_names_
[];
76
const
static
char
*
partition_
;
77
78
// NDDS variables
79
DDSDomainParticipant *
domain_participant_
;
80
DDSPublisher *
publisher_
;
81
DDSSubscriber *
subscriber_
;
82
DDSTopic *
update_topic_
;
83
DDSDataReader *
data_reader_
;
84
DDSDataWriter *
data_writer_
;
85
Ndds_Knowledge_UpdateDataWriter *
update_writer_
;
86
NDDSListener
*
listener_
;
87
88
};
89
}
90
}
91
92
#endif
NddsListener.h
madara::transport::NddsTransport::reliability
int reliability(void) const
Accesses reliability setting.
Definition:
NddsTransport.cpp:90
ThreadSafeContext.h
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:82
madara::transport::NddsTransport::partition_
static const char * partition_
Definition:
NddsTransport.h:76
madara::transport::NddsTransport::send_data
long send_data(const knowledge::KnowledgeRecords &updates)
Sends a list of knowledge updates to listeners.
Definition:
NddsTransport.cpp:294
madara::transport::TransportSettings
Holds basic transport settings.
Definition:
TransportSettings.h:92
Transport.h
madara::transport::NddsTransport::domain_participant_
DDSDomainParticipant * domain_participant_
Definition:
NddsTransport.h:79
madara::transport::NddsTransport::NddsTransport
NddsTransport(const std::string &id, knowledge::ThreadSafeContext &context, TransportSettings &config, bool launch_transport)
Constructor.
Definition:
NddsTransport.cpp:19
madara::transport::NddsTransport::listener_
NDDSListener * listener_
Definition:
NddsTransport.h:86
madara::transport::NddsTransport::update_writer_
Ndds_Knowledge_UpdateDataWriter * update_writer_
Definition:
NddsTransport.h:85
madara::transport::NddsTransport::subscriber_
DDSSubscriber * subscriber_
Definition:
NddsTransport.h:81
madara::knowledge::KnowledgeRecords
::std::map< std::string, KnowledgeRecord * > KnowledgeRecords
Definition:
KnowledgeRecord.h:1461
madara::transport::NddsTransport::data_writer_
DDSDataWriter * data_writer_
Definition:
NddsTransport.h:84
madara::transport::NddsTransport::data_reader_
DDSDataReader * data_reader_
Definition:
NddsTransport.h:83
madara::knowledge::tags::string
static constexpr struct madara::knowledge::tags::string_t string
madara::transport::NddsTransport
This class provides an interface into the NDDS dissemination transport.
Definition:
NddsTransport.h:22
madara::transport::NddsTransport::update_topic_
DDSTopic * update_topic_
Definition:
NddsTransport.h:82
madara::transport::NddsTransport::setup
int setup(void)
Activates this transport.
Definition:
NddsTransport.cpp:102
madara::transport::NddsTransport::close
void close(void)
Closes this transport.
Definition:
NddsTransport.cpp:37
madara::transport::NddsTransport::~NddsTransport
~NddsTransport()
Destructor.
Definition:
NddsTransport.cpp:31
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::transport::Base
Base class from which all transports must be derived.
Definition:
Transport.h:62
madara::transport::NddsTransport::publisher_
DDSPublisher * publisher_
Definition:
NddsTransport.h:80
madara::transport::NddsTransport::topic_names_
static const char * topic_names_[]
Definition:
NddsTransport.h:75
madara::transport::NDDSListener
Container for NDDS callbacks.
Definition:
NddsListener.h:23
include
madara
transport
ndds
NddsTransport.h
Generated on Wed May 9 2018 18:17:16 for MADARA by
1.8.11