OpenDDS  Snapshot(2023/04/28-20:55)
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 7636 of file Sedp.cpp.

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

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

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: