35 #include "commeffectshimheader.pb.h" 39 EMANEMessage::CommEffectShimHeader msg;
41 if(!msg.ParseFromArray(p,len))
48 u32GroupId_ = msg.groupid();
50 u32SequenceNumber_ = msg.sequencenumber();
54 std::uint32_t u32GroupId,
55 std::uint32_t u32SequenceNumber):
56 txTimePoint_{txTimePoint},
57 u32GroupId_{u32GroupId},
58 u32SequenceNumber_{u32SequenceNumber}
63 EMANEMessage::CommEffectShimHeader msg;
65 msg.set_txtimemicroseconds(std::chrono::duration_cast<Microseconds>(txTimePoint_.time_since_epoch()).count());
67 msg.set_groupid(u32GroupId_);
69 msg.set_sequencenumber(u32SequenceNumber_);
73 if(!msg.SerializeToString(&serialization))
std::string Serialization
SerializationException is thrown when an exception occurs during serialization or deserialization of ...
std::chrono::microseconds Microseconds
Clock::time_point TimePoint