26 #ifndef ODVA_ETHERNETIP_CPF_ITEM_H 27 #define ODVA_ETHERNETIP_CPF_ITEM_H 29 #include <boost/shared_ptr.hpp> 36 using boost::shared_ptr;
40 using serialization::Serializable;
41 using serialization::Reader;
42 using serialization::Writer;
96 void setData(shared_ptr<Serializable> data)
132 virtual Writer&
serialize(Writer& writer)
const;
141 virtual Reader&
deserialize(Reader& reader,
size_t length);
164 #endif // ODVA_ETHERNETIP_CPF_ITEM_H CPFItem(EIP_UINT item_type, shared_ptr< Serializable > item_data)
void setData(shared_ptr< Serializable > data)
virtual size_t getLength() const
shared_ptr< Serializable > getData()
virtual EIP_UINT getDataLength() const
virtual Writer & serialize(Writer &writer) const
virtual Reader & deserialize(Reader &reader, size_t length)
void getDataAs(Serializable &result)
void deserializeData(Reader &reader, EIP_UINT item_length)
void setItemType(EIP_UINT item_type)
shared_ptr< Serializable > item_data_