Public Member Functions | Public Attributes | List of all members
eip::IdentityItemData Class Reference

#include <identity_item_data.h>

Inheritance diagram for eip::IdentityItemData:
Inheritance graph
[legend]

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
 

Detailed Description

Data structure and operators for CIP Identity Item data.

Definition at line 46 of file identity_item_data.h.

Member Function Documentation

virtual Reader& eip::IdentityItemData::deserialize ( Reader &  reader,
size_t  length 
)
inlinevirtual

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

Parameters
readerReader to use for deserialization
Returns
the reader again
Exceptions
std::length_errorif 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

Returns
Total length in bytes to be 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

Parameters
writerWriter to use for serialization
Returns
the writer again
Exceptions
std::length_errorif the buffer is too small for the header data

Definition at line 46 of file identity_item_data.cpp.

Member Data Documentation

EIP_UINT eip::IdentityItemData::device_type

Definition at line 52 of file identity_item_data.h.

EIP_UINT eip::IdentityItemData::encap_protocol_version

Definition at line 49 of file identity_item_data.h.

EIP_UINT eip::IdentityItemData::product_code

Definition at line 53 of file identity_item_data.h.

string eip::IdentityItemData::product_name

Definition at line 57 of file identity_item_data.h.

EIP_USINT eip::IdentityItemData::revision[2]

Definition at line 54 of file identity_item_data.h.

EIP_UDINT eip::IdentityItemData::serial_number

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.

EIP_USINT eip::IdentityItemData::state

Definition at line 58 of file identity_item_data.h.

EIP_WORD eip::IdentityItemData::status

Definition at line 55 of file identity_item_data.h.

EIP_UINT eip::IdentityItemData::vendor_id

Definition at line 51 of file identity_item_data.h.


The documentation for this class was generated from the following files:


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Mon Jun 10 2019 14:00:16