26 #ifndef ODVA_ETHERNETIP_ENCAP_PACKET_H 27 #define ODVA_ETHERNETIP_ENCAP_PACKET_H 29 #include <boost/shared_ptr.hpp> 39 using boost::shared_ptr;
43 using serialization::Serializable;
44 using serialization::Reader;
45 using serialization::Writer;
58 :
header_(command, session_handle) { }
67 shared_ptr<Serializable> payload)
145 Reader&
deserialize(Reader& reader,
size_t length);
162 #endif // ODVA_ETHERNETIP_ENCAP_PACKET_H
EncapHeader & getHeader()
Writer & serialize(Writer &writer) const
Reader & deserialize(Reader &reader, size_t length)
shared_ptr< Serializable > payload_
shared_ptr< Serializable > getPayload() const
void setPayload(shared_ptr< Serializable > payload)
void getPayloadAs(Serializable &result)
EncapPacket(EIP_UINT command, EIP_UDINT session_handle, shared_ptr< Serializable > payload)
EncapPacket(EIP_UINT command=0, EIP_UDINT session_handle=0)