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 Readerdeserialize (Reader &reader)
 
virtual Readerdeserialize (Reader &reader, size_t length)
 
virtual size_t getLength () const
 
virtual Writerserialize (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

◆ deserialize() [1/2]

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

Implements eip::serialization::Serializable.

Definition at line 64 of file identity_item_data.cpp.

◆ deserialize() [2/2]

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

Extra length information is not relevant in this context. Same as deserialize(reader)

Implements eip::serialization::Serializable.

Definition at line 77 of file identity_item_data.h.

◆ getLength()

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

Implements eip::serialization::Serializable.

Definition at line 30 of file identity_item_data.cpp.

◆ serialize()

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

Implements eip::serialization::Serializable.

Definition at line 46 of file identity_item_data.cpp.

Member Data Documentation

◆ device_type

EIP_UINT eip::IdentityItemData::device_type

Definition at line 52 of file identity_item_data.h.

◆ encap_protocol_version

EIP_UINT eip::IdentityItemData::encap_protocol_version

Definition at line 49 of file identity_item_data.h.

◆ product_code

EIP_UINT eip::IdentityItemData::product_code

Definition at line 53 of file identity_item_data.h.

◆ product_name

string eip::IdentityItemData::product_name

Definition at line 57 of file identity_item_data.h.

◆ revision

EIP_USINT eip::IdentityItemData::revision[2]

Definition at line 54 of file identity_item_data.h.

◆ serial_number

EIP_UDINT eip::IdentityItemData::serial_number

Definition at line 56 of file identity_item_data.h.

◆ sockaddr

sockaddr_in eip::IdentityItemData::sockaddr

Definition at line 50 of file identity_item_data.h.

◆ state

EIP_USINT eip::IdentityItemData::state

Definition at line 58 of file identity_item_data.h.

◆ status

EIP_WORD eip::IdentityItemData::status

Definition at line 55 of file identity_item_data.h.

◆ vendor_id

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 Wed Mar 2 2022 00:38:56