DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Namespaces | Classes | Typedefs | Functions
dds::pub Namespace Reference

Namespaces

namespace  detail
 
namespace  qos
 

Classes

class  AnyDataWriter
 
class  AnyDataWriterListener
 
class  DataWriter
 
class  DataWriterListener
 
class  NoOpAnyDataWriterListener
 
class  NoOpDataWriterListener
 
class  NoOpPublisherListener
 
class  PublisherListener
 
class  TCoherentSet
 
class  TPublisher
 
class  TSuspendedPublication
 

Typedefs

typedef
dds::pub::detail::CoherentSet 
CoherentSet
 
typedef dds::pub::detail::Publisher Publisher
 
typedef
dds::pub::detaul::SuspendedPublication 
SuspendedPublication
 

Functions

template<typename WRITER , typename FwdIterator >
uint32_t find (const dds::pub::Publisher &pub, const std::string &topic_name, FwdIterator begin, uint32_t max_size)
 
template<typename WRITER , typename BinIterator >
uint32_t find (const dds::pub::Publisher &pub, const std::string &topic_name, BinIterator begin)
 
template<typename T >
DataWriter< T > get (const AnyDataWriter &adw)
 
void ignore (const dds::domain::DomainParticipant &dp, const dds::core::InstanceHandle &handle)
 
template<typename FwdIterator >
void ignore (const dds::domain::DomainParticipant &dp, FwdIterator begin, FwdIterator end)
 
template<typename T >
const
dds::topic::SubscriptionBuiltinTopicData 
matched_subscription_data (const dds::pub::DataWriter< T > &dw, const ::dds::core::InstanceHandle &h)
 
template<typename T >
const
::dds::core::InstanceHandleSeq 
matched_subscriptions (const dds::pub::DataWriter< T > &dw)
 
template<typename T , typename FwdIterator >
::dds::core::InstanceHandleSeqmatched_subscriptions (const dds::pub::DataWriter< T > &dw, FwdIterator begin, FwdIterator end)
 

Typedef Documentation

Definition at line 7 of file CoherentSet.hpp.

Definition at line 26 of file Publisher.hpp.

typedef dds::pub::detaul::SuspendedPublication dds::pub::SuspendedPublication

Definition at line 25 of file SuspendedPublication.hpp.

Function Documentation

template<typename WRITER , typename FwdIterator >
uint32_t dds::pub::find ( const dds::pub::Publisher pub,
const std::string &  topic_name,
FwdIterator  begin,
uint32_t  max_size 
)

This function retrieves a previously-created DataWriter belonging to the Publisher that is attached to a Topic with a matching topic_name. If no such DataWriter exists, the operation will return an empty container. The use of this operation on the built-in Publisher allows access to the built-in DataWriter entities for the built-in topics

Returns
the total number of elements found. Notice that at most max_size will be copied using the provided iterator.
template<typename WRITER , typename BinIterator >
uint32_t dds::pub::find ( const dds::pub::Publisher pub,
const std::string &  topic_name,
BinIterator  begin 
)

This function retrieves a previously-created DataWriter belonging to the Publisher that is attached to a Topic with a matching topic_name. If no such DataWriter exists, the operation will return an empty container. The use of this operation on the built-in Publisher allows access to the built-in DataWriter entities for the built-in topics

Returns
the total number of elements found. Notice that at most max_size will be copied using the provided iterator.
template<typename T >
DataWriter<T> dds::pub::get ( const AnyDataWriter &  adw)

Extracts a typed DataWriter from an AnyDataWriter.

void dds::pub::ignore ( const dds::domain::DomainParticipant dp,
const dds::core::InstanceHandle handle 
)

Ignore publications.

Parameters
dpthe DomainParticipant for which the remote entity will be ignored
handlethe InstanceHandle of the remote entity that has to be ignored
template<typename FwdIterator >
void dds::pub::ignore ( const dds::domain::DomainParticipant dp,
FwdIterator  begin,
FwdIterator  end 
)

Ignore publications.

Parameters
dpthe DomainParticipant for which the remote entity will be ignored
handlethe InstanceHandle of the remote entity that has to be ignored
template<typename T >
const dds::topic::SubscriptionBuiltinTopicData dds::pub::matched_subscription_data ( const dds::pub::DataWriter< T > &  dw,
const ::dds::core::InstanceHandle h 
)

This operation retrieves information on a subscription that is currently associated with the DataWriter; that is, a subscription with a matching Topic and compatible QoS that the application has not indicated should be ignored by means of the DomainParticipant ignore_subscription operation. The subscription_handle must correspond to a subscription currently associated with the DataWriter, otherwise the operation will fail and throw a BadParameterError. The operation matched_subscriptions can be used to find the subscriptions that are currently matched with the DataWriter.

The operation may also fail if the infrastructure does not hold the information necessary to fill in the subscription_data. In this case the operation will throw UnsupportedError.

template<typename T >
const ::dds::core::InstanceHandleSeq dds::pub::matched_subscriptions ( const dds::pub::DataWriter< T > &  dw)

This operation retrieves the list of subscriptions currently "associated" with the DataWriter; that is, subscriptions that have a matching Topic and compatible QoS that the application has not indicated should be "ignored" by means of the DomainParticipant ignore_subscription operation. The handles returned in the "subscription_handles" list are the ones that are used by the DDS implementation to locally identify the corresponding matched DataReader entities. These handles match the ones that appear in the "instance_handle" field of the SampleInfo when reading the "DCPSSubscriptions" builtin topic. The operation may fail if the infrastructure does not locally maintain the connectivity information.

template<typename T , typename FwdIterator >
::dds::core::InstanceHandleSeq& dds::pub::matched_subscriptions ( const dds::pub::DataWriter< T > &  dw,
FwdIterator  begin,
FwdIterator  end 
)

This operation retrieves the list of subscriptions currently "associated" with the DataWriter; that is, subscriptions that have a matching Topic and compatible QoS that the application has not indicated should be "ignored" by means of the DomainParticipant ignore_subscription operation. The handles returned in the "subscription_handles" list are the ones that are used by the DDS implementation to locally identify the corresponding matched DataReader entities. These handles match the ones that appear in the "instance_handle" field of the SampleInfo when reading the "DCPSSubscriptions" builtin topic. The operation may fail if the infrastructure does not locally maintain the connectivity information.