26 #include <boost/shared_ptr.hpp> 27 #include <boost/make_shared.hpp> 33 using boost::shared_ptr;
34 using boost::make_shared;
59 throw std::logic_error(
"Not enough items in RR Data");
63 std::cout <<
"Warning: more than 2 items in RR data response" << std::endl;
67 throw std::logic_error(
"Address other than null in RR Data");
69 if (pkt.
getItems().at(0).getDataLength() != 0)
71 throw std::logic_error(
"Data length greater than zero in null address type");
76 throw std::logic_error(
"Unexpected data type in RR Data");
virtual Reader & deserialize(Reader &reader, size_t length)
virtual void setData(CPFItem &item)
virtual Writer & serialize(Writer &writer) const
virtual shared_ptr< Serializable > getData() const
EIP_UDINT interface_handle
virtual Reader & deserialize(Reader &reader, size_t length)
virtual Writer & serialize(Writer &writer) const
vector< CPFItem > & getItems()
EIP_UINT getItemCount() const