26 #ifndef ODVA_ETHERNETIP_MESSAGE_ROUTER_REQUEST_H 27 #define ODVA_ETHERNETIP_MESSAGE_ROUTER_REQUEST_H 30 #include <boost/shared_ptr.hpp> 38 using boost::shared_ptr;
42 using serialization::Serializable;
43 using serialization::Reader;
44 using serialization::Writer;
73 void setData(shared_ptr<Serializable> data)
96 result +=
data_->getLength();
109 writer.write(service);
112 data_->serialize(writer);
122 throw std::logic_error(
"Not implemented");
130 throw std::logic_error(
"Not implemented");
140 #endif // ODVA_ETHERNETIP_MESSAGE_ROUTER_REQUEST_H
virtual Reader & deserialize(Reader &reader, size_t length)
virtual Writer & serialize(Writer &writer) const
virtual size_t getLength() const
virtual Writer & serialize(Writer &writer) const
virtual Reader & deserialize(Reader &reader)
virtual size_t getLength() const
MessageRouterRequest(EIP_USINT service_code=0)
void setData(shared_ptr< Serializable > data)
shared_ptr< Serializable > getData() const
shared_ptr< Serializable > data_