OpenDDS  Snapshot(2023/04/28-20:55)
MetaSubmessage.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_TRANSPORT_RTPS_UDP_METASUBMESSAGE_H
7 #define OPENDDS_DCPS_TRANSPORT_RTPS_UDP_METASUBMESSAGE_H
8 
9 #include "Rtps_Udp_Export.h"
10 
11 #include <dds/DCPS/RTPS/RtpsCoreTypeSupportImpl.h>
12 
14 
15 namespace OpenDDS {
16 namespace DCPS {
17 
20  : src_guid_(GUID_UNKNOWN), dst_guid_(GUID_UNKNOWN), ignore_(false) {}
21  MetaSubmessage(const GUID_t& src, const GUID_t& dst)
22  : src_guid_(src), dst_guid_(dst), ignore_(false) {}
23 
25  {
26  dst_guid_ = GUID_UNKNOWN;
27  }
28 
32  bool ignore_;
33 };
34 
35 typedef OPENDDS_VECTOR(MetaSubmessage) MetaSubmessageVec;
36 
37 /// Mark submessages that are superseded as ignored.
38 /// Returns the number of messages that are marked as ignored.
40 size_t dedup(MetaSubmessageVec& vec);
41 
42 } // namespace DCPS
43 } // namespace OpenDDS
44 
46 
47 #endif /* OPENDDS_DCPS_TRANSPORT_RTPS_UDP_METASUBMESSAGE_H */
MetaSubmessage(const GUID_t &src, const GUID_t &dst)
const GUID_t GUID_UNKNOWN
Nil value for GUID.
Definition: GuidUtils.h:59
size_t dedup(MetaSubmessageVec &vec)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
typedef OPENDDS_VECTOR(ActionConnectionRecord) ConnectionRecords
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
#define OpenDDS_Rtps_Udp_Export