OpenDDS  Snapshot(2023/04/28-20:55)
TransportRetainedElement.cpp
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 "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
10 
11 #if !defined (__ACE_INLINE__)
13 #endif /* __ACE_INLINE__ */
14 
16 
18 {
19  DBG_ENTRY_LVL("TransportRetainedElement", "~TransportRetainedElement", 6);
20 }
21 
22 void
24  bool /* dropped_by_transport */
25 )
26 {
27  DBG_ENTRY_LVL("TransportRetainedElement", "release_element", 6);
28  delete this;
29 }
30 
33 {
34  DBG_ENTRY_LVL("TransportRetainedElement", "publication_id", 6);
35  return publication_id_;
36 }
37 
40 {
41  DBG_ENTRY_LVL("TransportRetainedElement", "duplicate_msg", 6);
42  return msg_->duplicate();
43 }
44 
45 const ACE_Message_Block*
47 {
48  DBG_ENTRY_LVL("TransportRetainedElement", "msg", 6);
49  return msg_.get();
50 }
51 
52 const ACE_Message_Block*
54 {
55  DBG_ENTRY_LVL("TransportRetainedElement", "msg_payload", 6);
56  return msg_->cont();
57 }
58 
virtual ACE_Message_Block * duplicate_msg() const
}
virtual void release_element(bool dropped_by_transport)
}
virtual const ACE_Message_Block * msg_payload() const
}
GUID_t publication_id_
Originating publication Id, if any.
ACE_Message_Block * cont(void) const
virtual ACE_Message_Block * duplicate(void) const
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
virtual const ACE_Message_Block * msg() const
}