EMANE
1.2.1
|
A Serialized Control Message is used to encapsulate Serializable control messages as they traverse process boundaries via a network connection. More...
#include <serializedcontrolmessage.h>
Public Types | |
enum | { IDENTIFIER = EMANE_CONTROL_MEASSGE_SERIALIZED } |
Public Member Functions | |
SerializedControlMessage * | clone () const override |
~SerializedControlMessage () | |
ControlMessageId | getSerializedId () const |
std::string | getSerialization () const |
ControlMessageId | getId () const |
virtual Serialization | serialize () const |
Static Public Member Functions | |
static SerializedControlMessage * | create (ControlMessageId id, const void *pData, size_t length) |
A Serialized Control Message is used to encapsulate Serializable control messages as they traverse process boundaries via a network connection.
Encapulated control messages must be restored before use:
Definition at line 57 of file serializedcontrolmessage.h.
anonymous enum |
Enumerator | |
---|---|
IDENTIFIER |
Definition at line 109 of file serializedcontrolmessage.h.
EMANE::Controls::SerializedControlMessage::~SerializedControlMessage | ( | ) |
Destroys an instance
Definition at line 74 of file serializedcontrolmessage.cc.
|
overridevirtual |
Clones the control message on the heap
Implements EMANE::Cloneable< ControlMessage >.
Definition at line 98 of file serializedcontrolmessage.cc.
|
static |
Creates a SerializedControlMessage instance on the heap
id | Control message id of the message being serialized |
pData | Pointer to the serialized data |
length | Serialized data length |
Definition at line 90 of file serializedcontrolmessage.cc.
|
inlineinherited |
Gets the control message id
Definition at line 64 of file controlmessage.h.
std::string EMANE::Controls::SerializedControlMessage::getSerialization | ( | ) | const |
Gets the message serialization
Definition at line 83 of file serializedcontrolmessage.cc.
EMANE::ControlMessageId EMANE::Controls::SerializedControlMessage::getSerializedId | ( | ) | const |
Gets the control message id of the serialized message
Definition at line 77 of file serializedcontrolmessage.cc.
|
inlinevirtualinherited |
Gets the serialized form of the object
SerializationException |
Reimplemented in EMANE::Controls::R2RISelfMetricControlMessage, EMANE::Controls::R2RINeighborMetricControlMessage, EMANE::Controls::OTATransmitterControlMessage, EMANE::Controls::R2RIQueueMetricControlMessage, EMANE::Controls::FlowControlControlMessage, EMANE::Events::CommEffectEvent, EMANE::Events::AntennaProfileEvent, EMANE::Events::FadingSelectionEvent, EMANE::Events::LocationEvent, EMANE::Events::PathlossEvent, EMANE::Models::IEEE80211ABG::MACHeaderMessage, EMANE::Models::TDMA::BaseModelMessage, EMANE::Models::TimingAnalysis::ShimHeaderMessage, EMANE::Messages::LoggerRecordMessage, EMANE::Models::RFPipe::MACHeaderMessage, EMANE::Models::IEEE80211ABG::OneHopNeighborsEvent, and EMANE::Models::CommEffect::ShimHeader.
Definition at line 69 of file serializable.h.