OpenDDS  Snapshot(2023/04/28-20:55)
ConnectionRecords.h
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 #ifndef OPENDDS_DCPS_CONNECTION_RECORDS_H
7 #define OPENDDS_DCPS_CONNECTION_RECORDS_H
8 
9 #ifndef DDS_HAS_MINIMUM_BIT
10 
11 #include "JobQueue.h"
12 #include "dcps_export.h"
13 
14 #include "BuiltInTopicUtils.h"
15 #include <dds/OpenddsDcpsExtTypeSupportImpl.h>
16 
18 
19 namespace OpenDDS {
20 namespace DCPS {
21 
22 typedef std::pair<bool, ConnectionRecord> ActionConnectionRecord;
23 typedef OPENDDS_VECTOR(ActionConnectionRecord) ConnectionRecords;
24 
26  public:
28  const ConnectionRecords& records)
29  : bit_sub_(bit_sub)
30  , records_(records)
31  {}
32 
34  bool action,
35  const ConnectionRecord& record)
36  : bit_sub_(bit_sub)
37  {
38  records_.push_back(std::make_pair(action, record));
39  }
40 
41  void execute();
42 
43  private:
45  ConnectionRecords records_;
46 };
47 
48 } // namespace DCPS
49 } // namespace OpenDDS
50 
52 
53 #endif /* DDS_HAS_MINIMUM_BIT */
54 
55 #endif /* OPENDDS_DCPS_CONNECTION_RECORDS_H */
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
WriteConnectionRecords(WeakRcHandle< BitSubscriber > bit_sub, bool action, const ConnectionRecord &record)
WriteConnectionRecords(WeakRcHandle< BitSubscriber > bit_sub, const ConnectionRecords &records)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
std::pair< bool, ConnectionRecord > ActionConnectionRecord
typedef OPENDDS_VECTOR(ActionConnectionRecord) ConnectionRecords
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
WeakRcHandle< BitSubscriber > bit_sub_