#include <cpf_packet.h>
Public Member Functions | |
virtual Reader & | deserialize (Reader &reader) |
virtual Reader & | deserialize (Reader &reader, size_t length) |
EIP_UINT | getItemCount () const |
vector< CPFItem > & | getItems () |
virtual size_t | getLength () const |
virtual Writer & | serialize (Writer &writer) const |
Private Attributes | |
vector< CPFItem > | items_ |
Representation of an EtherNet/IP Common Packet Format packet.
Definition at line 49 of file cpf_packet.h.
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 |
Implements eip::serialization::Serializable.
Definition at line 56 of file cpf_packet.cpp.
Length data isn't meaningful here. Instead just calls the deserialize without the added information.
Implements eip::serialization::Serializable.
Definition at line 89 of file cpf_packet.h.
|
inline |
Get the number of items in the packet, including both address and data items
Definition at line 57 of file cpf_packet.h.
|
inline |
Get the items in this packet
Definition at line 66 of file cpf_packet.h.
|
virtual |
Get the length in bytes of this packet after serialization
Implements eip::serialization::Serializable.
Definition at line 35 of file cpf_packet.cpp.
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 |
Implements eip::serialization::Serializable.
Definition at line 46 of file cpf_packet.cpp.
|
private |
Definition at line 104 of file cpf_packet.h.