8 #ifndef CTRANSACTION_H_
9 #define CTRANSACTION_H_ 1
13 #include "rofl/common/cclock.h"
23 uint16_t msg_sub_type;
35 ctransaction(uint32_t xid,
cclock const& delta, uint8_t msg_type = 0, uint16_t msg_sub_type = 0);
60 get_xid()
const {
return xid; };
66 get_since() {
return since; };
72 get_expires() {
return expires; };
78 get_msg_type()
const {
return msg_type; };
84 get_msg_sub_type()
const {
return msg_sub_type; };
90 os <<
indent(0) <<
"<transaction ";
91 os <<
"xid:" << std::hex << (int)ta.xid << std::dec
92 <<
" msg-type:" << (
int)ta.msg_type
93 <<
" msg-subtype:" << (int)ta.msg_sub_type <<
" >" << std::endl;
94 cclock delta(ta.since); delta -= ta.expires;
95 os <<
indent(2) <<
"<expires: >" << std::endl;
96 {
indent i(4); os << delta; }
98 os <<
indent(2) <<
"<since: >" << std::endl;
99 {
indent i(4); os << ta.since; }
100 os <<
indent(2) <<
"<expires: >" << std::endl;
101 {
indent i(4); os << ta.expires; }
Definition: ctransaction.h:17