#include <identity_item_data.h>
Public Member Functions | |
virtual Reader & | deserialize (Reader &reader, size_t length) |
virtual Reader & | deserialize (Reader &reader) |
virtual size_t | getLength () const |
virtual Writer & | serialize (Writer &writer) const |
Public Attributes | |
EIP_UINT | device_type |
EIP_UINT | encap_protocol_version |
EIP_UINT | product_code |
string | product_name |
EIP_USINT | revision [2] |
EIP_UDINT | serial_number |
sockaddr_in | sockaddr |
EIP_USINT | state |
EIP_WORD | status |
EIP_UINT | vendor_id |
Data structure and operators for CIP Identity Item data.
Definition at line 46 of file identity_item_data.h.
virtual Reader& eip::IdentityItemData::deserialize | ( | Reader & | reader, |
size_t | length | ||
) | [inline, virtual] |
Extra length information is not relevant in this context. Same as deserialize(reader)
Definition at line 77 of file identity_item_data.h.
Reader & eip::IdentityItemData::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 64 of file identity_item_data.cpp.
size_t eip::IdentityItemData::getLength | ( | ) | const [virtual] |
Get the length of serialized data that would be produced if serialized
Definition at line 30 of file identity_item_data.cpp.
Writer & eip::IdentityItemData::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 identity_item_data.cpp.
Definition at line 52 of file identity_item_data.h.
Definition at line 49 of file identity_item_data.h.
Definition at line 53 of file identity_item_data.h.
Definition at line 57 of file identity_item_data.h.
Definition at line 54 of file identity_item_data.h.
Definition at line 56 of file identity_item_data.h.
sockaddr_in eip::IdentityItemData::sockaddr |
Definition at line 50 of file identity_item_data.h.
Definition at line 58 of file identity_item_data.h.
Definition at line 55 of file identity_item_data.h.
Definition at line 51 of file identity_item_data.h.