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 
35 
36 namespace eip {
37 
38 using std::string;
39 using serialization::Serializable;
40 using serialization::Reader;
41 using serialization::Writer;
42 
47 {
48 public:
50  sockaddr_in sockaddr;
57  string product_name;
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::serialization::Writer
Definition: writer.h:41
eip_types.h
eip::IdentityItemData::vendor_id
EIP_UINT vendor_id
Definition: identity_item_data.h:51
eip::serialization::Reader
Definition: reader.h:42
eip
Definition: connection.h:41
eip::IdentityItemData::status
EIP_WORD status
Definition: identity_item_data.h:55
EIP_WORD
uint16_t EIP_WORD
Definition: eip_types.h:38
EIP_UINT
uint16_t EIP_UINT
Definition: eip_types.h:39
eip::IdentityItemData::device_type
EIP_UINT device_type
Definition: identity_item_data.h:52
eip::IdentityItemData::getLength
virtual size_t getLength() const
Definition: identity_item_data.cpp:30
eip::IdentityItemData::serial_number
EIP_UDINT serial_number
Definition: identity_item_data.h:56
EIP_USINT
uint8_t EIP_USINT
Definition: eip_types.h:36
eip::serialization::Serializable
Definition: serializable.h:38
reader.h
eip::IdentityItemData::serialize
virtual Writer & serialize(Writer &writer) const
Definition: identity_item_data.cpp:46
eip::IdentityItemData::product_code
EIP_UINT product_code
Definition: identity_item_data.h:53
eip::IdentityItemData::state
EIP_USINT state
Definition: identity_item_data.h:58
eip::IdentityItemData::encap_protocol_version
EIP_UINT encap_protocol_version
Definition: identity_item_data.h:49
eip::IdentityItemData::sockaddr
sockaddr_in sockaddr
Definition: identity_item_data.h:50
eip::IdentityItemData
Definition: identity_item_data.h:46
eip::IdentityItemData::product_name
string product_name
Definition: identity_item_data.h:57
eip::IdentityItemData::revision
EIP_USINT revision[2]
Definition: identity_item_data.h:54
eip::IdentityItemData::deserialize
virtual Reader & deserialize(Reader &reader, size_t length)
Definition: identity_item_data.h:77
EIP_UDINT
uint32_t EIP_UDINT
Definition: eip_types.h:42
serializable.h
writer.h


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:38:56