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

#include <Sedp.h>

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

Public Member Functions

 ReaderRemoveAssociations (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 1371 of file Sedp.h.

Constructor & Destructor Documentation

◆ ReaderRemoveAssociations()

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

Definition at line 1373 of file Sedp.h.

1374  : record_(record)
1375  {}
const ReaderAssociationRecord_rch record_
Definition: Sedp.h:1380

Member Function Documentation

◆ handle_event()

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

Called when the event is dispatched by an EventDispatcher.

Implements OpenDDS::DCPS::EventBase.

Definition at line 7681 of file Sedp.cpp.

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

7682 {
7683  DCPS::DataReaderCallbacks_rch lock = record_->callbacks_.lock();
7684  if (lock) {
7685  if (DCPS_debug_level > 3) {
7686  ACE_DEBUG((LM_DEBUG,
7687  ACE_TEXT("(%P|%t) Sedp::ReaderRemoveAssociations::handle_event - ")
7688  ACE_TEXT("removing reader %C association for writer %C\n"), LogGuid(record_->reader_id()).c_str(),
7689  LogGuid(record_->writer_id()).c_str()));
7690  }
7691  DCPS::WriterIdSeq writer_seq(1);
7692  writer_seq.length(1);
7693  writer_seq[0] = record_->writer_id();
7694  lock->remove_associations(writer_seq, false);
7695  }
7696 }
#define ACE_DEBUG(X)
RcHandle< DataReaderCallbacks > DataReaderCallbacks_rch
sequence< GUID_t > WriterIdSeq
ACE_TEXT("TCP_Factory")
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30
const ReaderAssociationRecord_rch record_
Definition: Sedp.h:1380

Member Data Documentation

◆ record_

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

Definition at line 1380 of file Sedp.h.


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