#include <cpf_packet.h>

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