DDS4CCM  1.0.7
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes
DDS_TopicBase_Connector_T Class Reference

#include <DDS_TopicBase_Connector_T.h>

Inheritance diagram for DDS_TopicBase_Connector_T:
Inheritance graph
[legend]
Collaboration diagram for DDS_TopicBase_Connector_T:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DDS_TopicBase_Connector_T (void)
virtual ~DDS_TopicBase_Connector_T (void)
virtual ::DDS::StringSeqkey_fields (void)
virtual void topic_name (const char *topic_name)
virtual char * topic_name (void)
virtual void key_fields (const ::DDS::StringSeq &key_fields)
virtual void configuration_complete (void)
virtual void ccm_activate (void)
virtual void ccm_passivate (void)
virtual void ccm_remove (void)
virtual void register_type (::DDS::DomainParticipant_ptr participant, const char *typesupport_name)
virtual void unregister_type (::DDS::DomainParticipant_ptr participant, const char *typesupport_name)

Protected Types

typedef DDS_Base_Connector_T
< CCM_TYPE > 
BaseConnector

Protected Member Functions

bool late_binding (void)
void late_binding (bool late_binding)
bool late_binded (const char *topic_name)
bool stop_dds (const char *topic_name)

Protected Attributes

CORBA::String_var topic_name_
DDS::StringSeq key_fields_
::DDS::Topic_var topic_
::DDS::TopicListener_var topiclistener_
::DDS::Publisher_var publisher_
::DDS::PublisherListener_var publisher_listener_
::DDS::Subscriber_var subscriber_
::DDS::SubscriberListener_var subscriber_listener_
bool init_subscriber_
bool init_publisher_

Private Attributes

bool late_binding_

Detailed Description

Author:
Marcel Smit <msmit@remedy.nl>
Id:
DDS_TopicBase_Connector_T.h 94802 2011-10-20 09:46:10Z mcorino

Wrapper facade for NDDS.


Member Typedef Documentation


Constructor & Destructor Documentation

DDS_TopicBase_Connector_T::DDS_TopicBase_Connector_T ( void  )
virtual DDS_TopicBase_Connector_T::~DDS_TopicBase_Connector_T ( void  ) [virtual]

Member Function Documentation

virtual void DDS_TopicBase_Connector_T::ccm_activate ( void  ) [virtual]

Interface methods for the Deployment and Configuration Framework

Reimplemented from DDS_Base_Connector_T< CCM_TYPE >.

Reimplemented in DDS_State_Connector_T, and DDS_Event_Connector_T.

virtual void DDS_TopicBase_Connector_T::ccm_passivate ( void  ) [virtual]

Interface methods for the Deployment and Configuration Framework

Reimplemented from DDS_Base_Connector_T< CCM_TYPE >.

Reimplemented in DDS_State_Connector_T, and DDS_Event_Connector_T.

virtual void DDS_TopicBase_Connector_T::ccm_remove ( void  ) [virtual]

Interface methods for the Deployment and Configuration Framework

Reimplemented from DDS_Base_Connector_T< CCM_TYPE >.

Reimplemented in DDS_State_Connector_T, and DDS_Event_Connector_T.

virtual void DDS_TopicBase_Connector_T::configuration_complete ( void  ) [virtual]

Interface methods for the Deployment and Configuration Framework

Reimplemented from DDS_Base_Connector_T< CCM_TYPE >.

Reimplemented in DDS_State_Connector_T, and DDS_Event_Connector_T.

virtual ::DDS::StringSeq* DDS_TopicBase_Connector_T::key_fields ( void  )
virtual void DDS_TopicBase_Connector_T::key_fields ( const ::DDS::StringSeq key_fields) [virtual]
bool DDS_TopicBase_Connector_T::late_binded ( const char *  topic_name) [protected]
bool DDS_TopicBase_Connector_T::late_binding ( void  ) [protected]
void DDS_TopicBase_Connector_T::late_binding ( bool  late_binding) [protected]
virtual void DDS_TopicBase_Connector_T::register_type ( ::DDS::DomainParticipant_ptr  participant,
const char *  typesupport_name 
) [virtual]

Initialization of a connector.

When one wants to use his own DDS::DomainParticipant, DDS::Topic, DDS::Subscriber and/or DDS::Publisher, these helper methods allows to create these, independent of the DDS vendor.

See $CIAO_ROOT/connectors/dds4ccm/tests/MultiTopic/Connector/MultiTopic_Connector_T.cpp on how to use these methods.

These methods will create the DDS4CCM Entities (and therefor the DDS entities in DDS itself), like DomainParticipant, Topic, Subscriber and Publisher

Implements DDS_Base_Connector_T< CCM_TYPE >.

bool DDS_TopicBase_Connector_T::stop_dds ( const char *  topic_name) [protected]
virtual void DDS_TopicBase_Connector_T::topic_name ( const char *  topic_name) [virtual]
virtual char* DDS_TopicBase_Connector_T::topic_name ( void  ) [virtual]
virtual void DDS_TopicBase_Connector_T::unregister_type ( ::DDS::DomainParticipant_ptr  participant,
const char *  typesupport_name 
) [virtual]

Removal of a connector.

Helper methods to remove the DDS Entities from memory.

Again, one should use a temporary _var variable and _retn () in order to remove the DDS Entities in a thread safe and memory leak free manner. See 'Passivation of a connector' in this file.

Removal

Implements DDS_Base_Connector_T< CCM_TYPE >.


Member Data Documentation

::DDS::Publisher_var DDS_TopicBase_Connector_T::publisher_ [protected]
::DDS::PublisherListener_var DDS_TopicBase_Connector_T::publisher_listener_ [protected]
::DDS::Subscriber_var DDS_TopicBase_Connector_T::subscriber_ [protected]
::DDS::SubscriberListener_var DDS_TopicBase_Connector_T::subscriber_listener_ [protected]
::DDS::Topic_var DDS_TopicBase_Connector_T::topic_ [protected]
::DDS::TopicListener_var DDS_TopicBase_Connector_T::topiclistener_ [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines