Public Types | Public Member Functions

Topic< T, DELEGATE > Class Template Reference

#include <Topic.hpp>

Inheritance diagram for Topic< T, DELEGATE >:

List of all members.

Public Types

typedef TopicListener< T > Listener
typedef
dds::core::cond::StatusCondition
< T > 
StatusCondition
typedef DELEGATE< T > DELEGATE_T
typedef
::dds::core::smart_ptr_traits
< DELEGATE< T > >::ref_type 
DELEGATE_REF_T
typedef
::dds::core::smart_ptr_traits
< DELEGATE< T >
>::weak_ref_type 
DELEGATE_WEAK_REF_T
typedef TopicDescription< T,
DELEGATE > 
BASE_T

Public Member Functions

template<typename T__ >
Topicoperator= (const T__ &rhs)
 Topic (DELEGATE_T *p)
 Topic (const DELEGATE_REF_T &ref)
template<typename H__ >
 Topic (const H__ &h)
 Topic ()
virtual ~Topic ()
StatusCondition status_condition () const
void listener (Listener *the_listener, const dds::core::status::StatusMask &event_mask)
Listenerlistener () const
const dds::topic::qos::TopicQos qos () const
void qos (const dds::topic::qos::TopicQos &the_qos)
const
dds::core::status::InconsistentTopicStatus 
inconsistent_topic_status ()

Detailed Description

template<typename T, template< typename Q > class DELEGATE>
class dds::topic::Topic< T, DELEGATE >

Topic is the most basic description of the data to be published and subscribed.

A Topic is identified by its name, which must be unique in the whole Domain. In addition (by virtue of extending TopicDescription) it fully specifies the type of the data that can be communicated when publishing or subscribing to the Topic. Topic is the only TopicDescription that can be used for publications and therefore associated to a DataWriter.

Definition at line 45 of file Topic.hpp.


Member Typedef Documentation

typedef TopicDescription< T , DELEGATE > BASE_T

Reimplemented from TopicDescription< T, DELEGATE >.

Definition at line 51 of file Topic.hpp.

typedef ::dds::core::smart_ptr_traits< DELEGATE < T > >::ref_type DELEGATE_REF_T

Reimplemented from TopicDescription< T, DELEGATE >.

Definition at line 51 of file Topic.hpp.

typedef DELEGATE< T > DELEGATE_T

Reimplemented from TopicDescription< T, DELEGATE >.

Definition at line 51 of file Topic.hpp.

typedef ::dds::core::smart_ptr_traits< DELEGATE < T > >::weak_ref_type DELEGATE_WEAK_REF_T

Reimplemented from TopicDescription< T, DELEGATE >.

Definition at line 51 of file Topic.hpp.

typedef TopicListener<T> Listener

Definition at line 47 of file Topic.hpp.

Definition at line 48 of file Topic.hpp.


Constructor & Destructor Documentation

Topic ( DELEGATE_T p  )  [inline, explicit]

Definition at line 51 of file Topic.hpp.

Topic ( const DELEGATE_REF_T ref  )  [inline, explicit]

Definition at line 51 of file Topic.hpp.

Topic ( const H__ &  h  )  [inline]

Definition at line 51 of file Topic.hpp.

Topic (  )  [inline]

Definition at line 51 of file Topic.hpp.

virtual ~Topic (  )  [inline, virtual]

Definition at line 53 of file Topic.hpp.


Member Function Documentation

const dds::core::status::InconsistentTopicStatus inconsistent_topic_status (  )  [inline]

This method allows the application to retrieve the INCONSISTENT_TOPIC status of the Topic. Each DomainEntity has a set of relevant communication statuses. A change of status causes the corresponding Listener to be invoked and can also be monitored by means of the associated StatusCondition. The complete list of communication status, their values, and the DomainEntities they apply to is provided in Section 7.1.4.1, ÒCommunication Status,Ó on page 120.

Definition at line 95 of file Topic.hpp.

Listener* listener (  )  const
void listener ( Listener the_listener,
const dds::core::status::StatusMask event_mask 
)
Topic& operator= ( const T__ &  rhs  )  [inline]

Reimplemented from TopicDescription< T, DELEGATE >.

Definition at line 51 of file Topic.hpp.

const dds::topic::qos::TopicQos qos (  )  const [inline]

Definition at line 77 of file Topic.hpp.

void qos ( const dds::topic::qos::TopicQos the_qos  )  [inline]

Definition at line 81 of file Topic.hpp.

StatusCondition status_condition (  )  const [inline]

This operation allows access to the StatusCondition (Section 7.1.2.1.9, ÒStatusCondition Class) associated with the Entity. The returned condition can then be added to a WaitSet (Section 7.1.2.1.6, WaitSet Class) so that the application can wait for specific status changes that affect the Entity.

Returns:
the status condition

Definition at line 65 of file Topic.hpp.


The documentation for this class was generated from the following file: