Main Page
Namespaces
Classes
Files
File List
File Members
include
odva_ethernetip
serialization
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
29
#include "
odva_ethernetip/serialization/writer.h
"
30
#include "
odva_ethernetip/serialization/reader.h
"
31
32
namespace
eip
{
33
namespace
serialization {
34
38
class
Serializable
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::Serializable
Definition:
serializable.h:38
reader.h
eip::serialization::Serializable::deserialize
virtual Reader & deserialize(Reader &reader, size_t length)=0
eip::serialization::Writer
Definition:
writer.h:41
eip::serialization::Reader
Definition:
reader.h:42
eip
Definition:
connection.h:41
writer.h
eip::serialization::Serializable::getLength
virtual size_t getLength() const =0
eip::serialization::Serializable::serialize
virtual Writer & serialize(Writer &writer) const =0
odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Mon Jun 10 2019 14:00:16