#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.
eip::SequencedDataItem< T >::SequencedDataItem | ( | EIP_UINT | sequence = 0 | ) | [inline] |
Definition at line 54 of file sequenced_data_item.h.
virtual Reader& eip::SequencedDataItem< T >::deserialize | ( | Reader & | reader, |
size_t | length | ||
) | [inline, virtual] |
Extra length information is not relevant in this context. Same as deserialize(reader)
Definition at line 80 of file sequenced_data_item.h.
virtual Reader& eip::SequencedDataItem< T >::deserialize | ( | Reader & | reader | ) | [inline, virtual] |
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.
virtual size_t eip::SequencedDataItem< T >::getLength | ( | ) | const [inline, virtual] |
Get the length of serialized data that would be produced if serialized
Definition at line 60 of file sequenced_data_item.h.
virtual Writer& eip::SequencedDataItem< T >::serialize | ( | Writer & | writer | ) | const [inline, virtual] |
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.
bool eip::SequencedDataItem< T >::already_deserializing [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.