26 #ifndef ODVA_ETHERNETIP_FORWARD_OPEN_SUCCESS_H 27 #define ODVA_ETHERNETIP_FORWARD_OPEN_SUCCESS_H 30 #include <boost/shared_ptr.hpp> 31 #include <boost/make_shared.hpp> 39 using boost::shared_ptr;
40 using boost::make_shared;
44 using serialization::Serializable;
45 using serialization::SerializableBuffer;
46 using serialization::Reader;
47 using serialization::Writer;
81 +
sizeof(t_to_o_connection_id)
83 +
sizeof(originator_vendor_id)
103 throw std::logic_error(
"Not implemented");
120 reader.read(o_to_t_connection_id);
121 reader.read(t_to_o_connection_id);
122 reader.read(connection_sn);
123 reader.read(originator_vendor_id);
124 reader.read(originator_sn);
125 reader.read(o_to_t_api);
126 reader.read(t_to_o_api);
127 reader.read(data_length);
131 shared_ptr<SerializableBuffer> sb = make_shared<SerializableBuffer> ();
132 sb->deserialize(reader, data_length*2);
149 #endif // ODVA_ETHERNETIP_FORWARD_OPEN_SUCCESS_H
virtual Reader & deserialize(Reader &reader)
shared_ptr< Serializable > getResponseData() const
EIP_UDINT t_to_o_connection_id
EIP_UINT originator_vendor_id
virtual Writer & serialize(Writer &writer) const
virtual size_t getLength() const
virtual Reader & deserialize(Reader &reader, size_t length)
EIP_UDINT o_to_t_connection_id
shared_ptr< Serializable > response_data_