OpenDDS  Snapshot(2023/04/28-20:55)
ConnectionRecords.cpp
Go to the documentation of this file.
1 /*
2  * Distributed under the OpenDDS License.
3  * See: http://www.opendds.org/license.html
4  */
5 
6 #include <DCPS/DdsDcps_pch.h> // Only the _pch include should start with DCPS/
7 
8 #ifndef DDS_HAS_MINIMUM_BIT
9 
10 #include "ConnectionRecords.h"
11 
13 
14 namespace OpenDDS {
15 namespace DCPS {
16 
18 {
19  RcHandle<BitSubscriber> bit_sub = bit_sub_.lock();
20  if (!bit_sub) {
21  return;
22  }
23 
24  for (ConnectionRecords::const_iterator pos = records_.begin(), limit = records_.end(); pos != limit; ++pos) {
25  if (pos->first) {
26  bit_sub->add_connection_record(pos->second, DDS::NEW_VIEW_STATE);
27  } else {
28  bit_sub->remove_connection_record(pos->second);
29  }
30  }
31 }
32 
33 } // namespace DCPS
34 } // namespace OpenDDS
35 
37 
38 #endif /* DDS_HAS_MINIMUM_BIT */
const ViewStateKind NEW_VIEW_STATE
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
WeakRcHandle< BitSubscriber > bit_sub_