encap_header.cpp
Go to the documentation of this file.
00001 
00026 #include "odva_ethernetip/encap_header.h"
00027 
00028 
00029 namespace eip {
00030 
00031 using serialization::Reader;
00032 using serialization::Writer;
00033 
00034 
00035 Writer& EncapHeader::serialize(Writer& writer) const
00036 {
00037   writer.write(command);
00038   writer.write(length);
00039   writer.write(session_handle);
00040   writer.write(status);
00041   writer.write(context);
00042   writer.write(options);
00043   return writer;
00044 }
00045 
00046 Reader& EncapHeader::deserialize(Reader& reader)
00047 {
00048   reader.read(command);
00049   reader.read(length);
00050   reader.read(session_handle);
00051   reader.read(status);
00052   reader.read(context);
00053   reader.read(options);
00054   return reader;
00055 }
00056 
00057 } // namespace eip


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Sat Jun 8 2019 20:21:23