34 #include "rfpipemacheader.pb.h" 37 class EMANE::Models::RFPipe::MACHeaderMessage::Implementation
40 Implementation(std::uint64_t u64DataRate) :
41 u64DataRate_{u64DataRate}
50 const std::uint64_t u64DataRate_;
55 pImpl_{
new Implementation{u64DataRate}}
61 EMANEMessage::RFPipeMACHeader message;
63 if(!message.ParseFromArray(p, len))
68 pImpl_.reset(
new Implementation{
static_cast<std::uint64_t
>(message.datarate())});
79 return pImpl_->getDataRate();
87 EMANEMessage::RFPipeMACHeader message;
89 message.set_datarate(pImpl_->getDataRate());
91 if(!message.SerializeToString(&serialization))
std::string Serialization
SerializationException is thrown when an exception occurs during serialization or deserialization of ...