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 
46 class IdentityItemData : public Serializable
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
uint8_t EIP_USINT
Definition: eip_types.h:36
virtual size_t getLength() const
Definition: connection.h:41
virtual Writer & serialize(Writer &writer) const
uint16_t EIP_WORD
Definition: eip_types.h:38
uint16_t EIP_UINT
Definition: eip_types.h:39
uint32_t EIP_UDINT
Definition: eip_types.h:42
virtual Reader & deserialize(Reader &reader, size_t length)


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