OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpenDDS::RTPS::Sedp::ReaderAddAssociation Class Reference

#include <Sedp.h>

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

Public Member Functions

 ReaderAddAssociation (const ReaderAssociationRecord_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 ReaderAssociationRecord_rch record_
 

Additional Inherited Members

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

Detailed Description

Definition at line 1359 of file Sedp.h.

Constructor & Destructor Documentation

◆ ReaderAddAssociation()

OpenDDS::RTPS::Sedp::ReaderAddAssociation::ReaderAddAssociation ( const ReaderAssociationRecord_rch record)
inlineexplicit

Definition at line 1361 of file Sedp.h.

1362  : record_(record)
1363  {}
const ReaderAssociationRecord_rch record_
Definition: Sedp.h:1368

Member Function Documentation

◆ handle_event()

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

Called when the event is dispatched by an EventDispatcher.

Implements OpenDDS::DCPS::EventBase.

Definition at line 7667 of file Sedp.cpp.

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

7668 {
7669  DCPS::DataReaderCallbacks_rch lock = record_->callbacks_.lock();
7670  if (lock) {
7671  if (DCPS_debug_level > 3) {
7672  ACE_DEBUG((LM_DEBUG,
7673  ACE_TEXT("(%P|%t) Sedp::ReaderAddAssociation::handle_event - ")
7674  ACE_TEXT("adding reader %C association for writer %C\n"), LogGuid(record_->reader_id()).c_str(),
7675  LogGuid(record_->writer_id()).c_str()));
7676  }
7677  lock->add_association(record_->reader_id(), record_->writer_association_, false);
7678  }
7679 }
#define ACE_DEBUG(X)
RcHandle< DataReaderCallbacks > DataReaderCallbacks_rch
const ReaderAssociationRecord_rch record_
Definition: Sedp.h:1368
ACE_TEXT("TCP_Factory")
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30

Member Data Documentation

◆ record_

const ReaderAssociationRecord_rch OpenDDS::RTPS::Sedp::ReaderAddAssociation::record_
private

Definition at line 1368 of file Sedp.h.


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