OpenDDS  Snapshot(2023/04/28-20:55)
TransportCustomizedElement.inl
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "EntryExit.h"
9 #include "TransportSendElement.h"
10 
12 
13 namespace OpenDDS {
14 namespace DCPS {
15 
20  orig_(orig),
21  original_send_element_(find_original_send_element(orig)),
22  publication_id_(orig ? orig->publication_id() : GUID_UNKNOWN),
23  subscription_id_(GUID_UNKNOWN),
25  fragment_(false),
26  exclusive_(false)
27 {
28  DBG_ENTRY_LVL("TransportCustomizedElement", "TransportCustomizedElement", 6);
29 }
30 
33 {
34  DBG_ENTRY_LVL("TransportCustomizedElement", "publication_id", 6);
35  return publication_id_;
36 }
37 
40 {
41  publication_id_ = id;
42 }
43 
46 {
48  return subscription_id_;
49  }
50  DBG_ENTRY_LVL("TransportCustomizedElement", "subscription_id", 6);
52  return ose ? ose->subscription_id() : GUID_UNKNOWN;
53 }
54 
57 {
58  subscription_id_ = id;
59 }
60 
64 {
66  return sequence_;
67  }
68  return orig_ ? orig_->sequence()
70 }
71 
74 {
75  sequence_ = value;
76 }
77 
80 {
81  fragment_ = true;
84  set_sequence(orig->sequence());
85 }
86 
87 } // namespace DCPS
88 } // namespace OpenDDS
89 
virtual SequenceNumber sequence() const
const LogLevel::Value value
Definition: debug.cpp:61
const TransportSendElement * original_send_element() const
const GUID_t GUID_UNKNOWN
Nil value for GUID.
Definition: GuidUtils.h:59
virtual GUID_t subscription_id() const
Accessor for the subscription id, if sent the sample is sent to 1 sub.
GUID_t subscription_id() const
Accessor for the subscription id, if sent the sample is sent to 1 sub.
virtual GUID_t publication_id() const
Accessor for the publication id that sent the sample.
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
const SequenceNumber_t SEQUENCENUMBER_UNKNOWN
Definition: MessageTypes.h:50
Sequence number abstraction. Only allows positive 64 bit values.
virtual GUID_t subscription_id() const
Accessor for the subscription id, if sent the sample is sent to 1 sub.
static SequenceNumber SEQUENCENUMBER_UNKNOWN()
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
virtual GUID_t publication_id() const =0
Accessor for the publication id that sent the sample.
#define ACE_INLINE
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
Base wrapper class around a data/control sample to be sent.