#include <sequenced_data_item.h>
Public Member Functions | |
virtual Reader & | deserialize (Reader &reader, size_t length) |
virtual Reader & | deserialize (Reader &reader) |
virtual size_t | getLength () const |
SequencedDataItem (EIP_UINT sequence=0) | |
virtual Writer & | serialize (Writer &writer) const |
Public Attributes | |
EIP_UINT | sequence_num |
Private Attributes | |
bool | already_deserializing |
For some stupid reason, sometime EIP likes to add a sequence number to the start of a data item. This template allows for easily adding that to any already defined data item.
Definition at line 49 of file sequenced_data_item.h.
|
inline |
Definition at line 54 of file sequenced_data_item.h.
|
inlinevirtual |
Extra length information is not relevant in this context. Same as deserialize(reader)
Definition at line 80 of file sequenced_data_item.h.
|
inlinevirtual |
Deserialize data from the given reader without length information
reader | Reader to use for deserialization |
std::length_error | if the buffer is overrun while deserializing |
Definition at line 96 of file sequenced_data_item.h.
|
inlinevirtual |
Get the length of serialized data that would be produced if serialized
Definition at line 60 of file sequenced_data_item.h.
|
inlinevirtual |
Serialize data into the given buffer
writer | Writer to use for serialization |
std::length_error | if the buffer is too small for the header data |
Definition at line 71 of file sequenced_data_item.h.
|
private |
Definition at line 108 of file sequenced_data_item.h.
EIP_UINT eip::SequencedDataItem< T >::sequence_num |
Definition at line 52 of file sequenced_data_item.h.