26 #ifndef ODVA_ETHERNETIP_SEQUENCED_DATA_ITEM_H 27 #define ODVA_ETHERNETIP_SEQUENCED_DATA_ITEM_H 39 using serialization::Serializable;
40 using serialization::Reader;
41 using serialization::Writer;
73 writer.write(sequence_num);
74 return T::serialize(writer);
83 reader.read(sequence_num);
85 T::deserialize(reader, length -
sizeof(sequence_num));
99 reader.read(sequence_num);
101 T::deserialize(reader);
113 #endif // ODVA_ETHERNETIP_SEQUENCED_DATA_ITEM_H SequencedDataItem(EIP_UINT sequence=0)
virtual size_t getLength() const
bool already_deserializing
virtual Reader & deserialize(Reader &reader)
virtual Reader & deserialize(Reader &reader, size_t length)
virtual Writer & serialize(Writer &writer) const