EMANE  1.2.1
EMANE::Models::TDMA::BaseModelMessage Class Reference

Message class used to serialize and deserialize TDMA radio model messages. More...

#include <basemodelmessage.h>

Inheritance diagram for EMANE::Models::TDMA::BaseModelMessage:
EMANE::Serializable

Public Member Functions

 BaseModelMessage ()
 
 BaseModelMessage (std::uint64_t u64AbsoluteSlotIndex, std::uint64_t u64DataRatebps, MessageComponents &&messages)
 
 BaseModelMessage (const void *p, size_t len)
 
const MessageComponentsgetMessages () const
 
std::uint64_t getAbsoluteSlotIndex () const
 
std::uint64_t getDataRate () const
 
Serialization serialize () const override
 

Detailed Description

Message class used to serialize and deserialize TDMA radio model messages.

Definition at line 53 of file basemodelmessage.h.

Constructor & Destructor Documentation

◆ BaseModelMessage() [1/3]

EMANE::Models::TDMA::BaseModelMessage::BaseModelMessage ( )
inline

Definition at line 36 of file basemodelmessage.inl.

◆ BaseModelMessage() [2/3]

EMANE::Models::TDMA::BaseModelMessage::BaseModelMessage ( std::uint64_t  u64AbsoluteSlotIndex,
std::uint64_t  u64DataRatebps,
MessageComponents &&  messages 
)
inline

Definition at line 41 of file basemodelmessage.inl.

◆ BaseModelMessage() [3/3]

EMANE::Models::TDMA::BaseModelMessage::BaseModelMessage ( const void *  p,
size_t  len 
)
inline

Definition at line 49 of file basemodelmessage.inl.

Member Function Documentation

◆ getAbsoluteSlotIndex()

std::uint64_t EMANE::Models::TDMA::BaseModelMessage::getAbsoluteSlotIndex ( ) const
inline

Definition at line 110 of file basemodelmessage.inl.

◆ getDataRate()

std::uint64_t EMANE::Models::TDMA::BaseModelMessage::getDataRate ( ) const
inline

Definition at line 116 of file basemodelmessage.inl.

◆ getMessages()

const EMANE::Models::TDMA::MessageComponents & EMANE::Models::TDMA::BaseModelMessage::getMessages ( ) const
inline

Definition at line 104 of file basemodelmessage.inl.

◆ serialize()

EMANE::Serialization EMANE::Models::TDMA::BaseModelMessage::serialize ( ) const
inlineoverridevirtual

Gets the serialized form of the object

Returns
serialization
Exceptions
SerializationException
Note
Most objects use Google Protocol Buffers to perform serialization. This is why the Serialization type is a std::string. The serialized data is binary, non-printable data. The std::string just provides a simple API.
https://developers.google.com/protocol-buffers/

Reimplemented from EMANE::Serializable.

Definition at line 122 of file basemodelmessage.inl.


The documentation for this class was generated from the following files: