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

#include <Sedp.h>

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

Public Member Functions

 WriterRemoveAssociations (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 1347 of file Sedp.h.

Constructor & Destructor Documentation

◆ WriterRemoveAssociations()

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

Definition at line 1349 of file Sedp.h.

1350  : record_(record)
1351  {}
const WriterAssociationRecord_rch record_
Definition: Sedp.h:1356

Member Function Documentation

◆ handle_event()

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

Called when the event is dispatched by an EventDispatcher.

Implements OpenDDS::DCPS::EventBase.

Definition at line 7650 of file Sedp.cpp.

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

7651 {
7652  DCPS::DataWriterCallbacks_rch lock = record_->callbacks_.lock();
7653  if (lock) {
7654  if (DCPS_debug_level > 3) {
7655  ACE_DEBUG((LM_DEBUG,
7656  ACE_TEXT("(%P|%t) Sedp::WriterRemoveAssociations::handle_event - ")
7657  ACE_TEXT("removing writer %C association for reader %C\n"), LogGuid(record_->writer_id()).c_str(),
7658  LogGuid(record_->reader_id()).c_str()));
7659  }
7660  DCPS::ReaderIdSeq reader_seq(1);
7661  reader_seq.length(1);
7662  reader_seq[0] = record_->reader_id();
7663  lock->remove_associations(reader_seq, false);
7664  }
7665 }
#define ACE_DEBUG(X)
sequence< GUID_t > ReaderIdSeq
const WriterAssociationRecord_rch record_
Definition: Sedp.h:1356
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::WriterRemoveAssociations::record_
private

Definition at line 1356 of file Sedp.h.


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