OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpenDDS::RTPS::Sedp::WriterAddAssociation Class Reference

#include <Sedp.h>

Inheritance diagram for OpenDDS::RTPS::Sedp::WriterAddAssociation:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::RTPS::Sedp::WriterAddAssociation:
Collaboration graph
[legend]

Public Member Functions

 WriterAddAssociation (const WriterAssociationRecord_rch &record)
 
- Public Member Functions inherited from OpenDDS::DCPS::EventBase
virtual ~EventBase ()
 
virtual void handle_error ()
 Only called when an exception is caught during handle_event. More...
 
virtual void handle_cancel ()
 
void operator() ()
 
- Public Member Functions inherited from OpenDDS::DCPS::RcObject
virtual ~RcObject ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
long ref_count () const
 
WeakObject_get_weak_object () const
 

Private Member Functions

virtual void handle_event ()
 Called when the event is dispatched by an EventDispatcher. More...
 

Private Attributes

const WriterAssociationRecord_rch record_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenDDS::DCPS::RcObject
 RcObject ()
 

Detailed Description

Definition at line 1335 of file Sedp.h.

Constructor & Destructor Documentation

◆ WriterAddAssociation()

OpenDDS::RTPS::Sedp::WriterAddAssociation::WriterAddAssociation ( const WriterAssociationRecord_rch record)
inlineexplicit

Definition at line 1337 of file Sedp.h.

1338  : record_(record)
1339  {}
const WriterAssociationRecord_rch record_
Definition: Sedp.h:1344

Member Function Documentation

◆ handle_event()

void OpenDDS::RTPS::Sedp::WriterAddAssociation::handle_event ( )
privatevirtual

Called when the event is dispatched by an EventDispatcher.

Implements OpenDDS::DCPS::EventBase.

Definition at line 7628 of file Sedp.cpp.

References ACE_DEBUG, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, and LM_DEBUG.

7629 {
7630  DCPS::DataWriterCallbacks_rch lock = record_->callbacks_.lock();
7631  if (lock) {
7632  if (DCPS_debug_level > 3) {
7633  ACE_DEBUG((LM_DEBUG,
7634  ACE_TEXT("(%P|%t) Sedp::WriterAddAssociation::handle_event - ")
7635  ACE_TEXT("adding writer %C association for reader %C\n"), LogGuid(record_->writer_id()).c_str(),
7636  LogGuid(record_->reader_id()).c_str()));
7637  }
7638  lock->add_association(record_->writer_id(), record_->reader_association_, true);
7639  }
7640 }
#define ACE_DEBUG(X)
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30
ACE_TEXT("TCP_Factory")
const WriterAssociationRecord_rch record_
Definition: Sedp.h:1344
RcHandle< DataWriterCallbacks > DataWriterCallbacks_rch

Member Data Documentation

◆ record_

const WriterAssociationRecord_rch OpenDDS::RTPS::Sedp::WriterAddAssociation::record_
private

Definition at line 1344 of file Sedp.h.


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