serializable.h
Go to the documentation of this file.
1 
26 #ifndef ODVA_ETHERNETIP_SERIALIZATION_SERIALIZABLE_H
27 #define ODVA_ETHERNETIP_SERIALIZATION_SERIALIZABLE_H
28 
31 
32 namespace eip {
33 namespace serialization {
34 
39 {
40 public:
45  virtual size_t getLength() const = 0;
46 
53  virtual Writer& serialize(Writer& writer) const = 0;
54 
62  virtual Reader& deserialize(Reader& reader, size_t length) = 0;
63 
70  virtual Reader& deserialize(Reader& reader) = 0;
71 };
72 
73 } // namespace serialization
74 } // namespace eip
75 #endif // ODVA_ETHERNETIP_SERIALIZATION_SERIALIZABLE_H
eip::serialization::Writer
Definition: writer.h:41
eip::serialization::Reader
Definition: reader.h:42
eip
Definition: connection.h:41
eip::serialization::Serializable::getLength
virtual size_t getLength() const =0
eip::serialization::Serializable::deserialize
virtual Reader & deserialize(Reader &reader, size_t length)=0
eip::serialization::Serializable
Definition: serializable.h:38
reader.h
eip::serialization::Serializable::serialize
virtual Writer & serialize(Writer &writer) const =0
writer.h


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