Main Page
Namespaces
Classes
Files
File List
File Members
include
odva_ethernetip
identity_item_data.h
Go to the documentation of this file.
1
26
#ifndef ODVA_ETHERNETIP_IDENTITY_ITEM_DATA_H
27
#define ODVA_ETHERNETIP_IDENTITY_ITEM_DATA_H
28
29
#include <string>
30
31
#include "
odva_ethernetip/eip_types.h
"
32
#include "
odva_ethernetip/serialization/reader.h
"
33
#include "
odva_ethernetip/serialization/writer.h
"
34
#include "
odva_ethernetip/serialization/serializable.h
"
35
36
namespace
eip
{
37
38
using
std::string;
39
using
serialization::Serializable;
40
using
serialization::Reader;
41
using
serialization::Writer;
42
46
class
IdentityItemData
:
public
Serializable
47
{
48
public
:
49
EIP_UINT
encap_protocol_version
;
50
sockaddr_in
sockaddr
;
51
EIP_UINT
vendor_id
;
52
EIP_UINT
device_type
;
53
EIP_UINT
product_code
;
54
EIP_USINT
revision
[2];
55
EIP_WORD
status
;
56
EIP_UDINT
serial_number
;
57
string
product_name
;
58
EIP_USINT
state
;
59
64
virtual
size_t
getLength
()
const
;
65
72
virtual
Writer&
serialize
(Writer& writer)
const
;
73
77
virtual
Reader&
deserialize
(Reader& reader,
size_t
length)
78
{
79
deserialize
(reader);
80
return
reader;
81
}
82
89
virtual
Reader&
deserialize
(Reader& reader);
90
};
91
92
}
// namespace eip
93
94
#endif // ODVA_ETHERNETIP_IDENTITY_ITEM_DATA_H
eip::IdentityItemData
Definition:
identity_item_data.h:46
EIP_USINT
uint8_t EIP_USINT
Definition:
eip_types.h:36
eip::IdentityItemData::state
EIP_USINT state
Definition:
identity_item_data.h:58
eip::IdentityItemData::getLength
virtual size_t getLength() const
Definition:
identity_item_data.cpp:30
reader.h
eip::IdentityItemData::serial_number
EIP_UDINT serial_number
Definition:
identity_item_data.h:56
eip::IdentityItemData::encap_protocol_version
EIP_UINT encap_protocol_version
Definition:
identity_item_data.h:49
eip::IdentityItemData::status
EIP_WORD status
Definition:
identity_item_data.h:55
eip_types.h
eip::IdentityItemData::vendor_id
EIP_UINT vendor_id
Definition:
identity_item_data.h:51
eip::IdentityItemData::sockaddr
sockaddr_in sockaddr
Definition:
identity_item_data.h:50
eip::IdentityItemData::device_type
EIP_UINT device_type
Definition:
identity_item_data.h:52
eip
Definition:
connection.h:41
eip::IdentityItemData::serialize
virtual Writer & serialize(Writer &writer) const
Definition:
identity_item_data.cpp:46
EIP_WORD
uint16_t EIP_WORD
Definition:
eip_types.h:38
EIP_UINT
uint16_t EIP_UINT
Definition:
eip_types.h:39
writer.h
eip::IdentityItemData::product_name
string product_name
Definition:
identity_item_data.h:57
EIP_UDINT
uint32_t EIP_UDINT
Definition:
eip_types.h:42
eip::IdentityItemData::deserialize
virtual Reader & deserialize(Reader &reader, size_t length)
Definition:
identity_item_data.h:77
serializable.h
eip::IdentityItemData::product_code
EIP_UINT product_code
Definition:
identity_item_data.h:53
eip::IdentityItemData::revision
EIP_USINT revision[2]
Definition:
identity_item_data.h:54
odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Mon Jun 10 2019 14:00:16