25 #include <boost/make_shared.hpp>
31 using boost::make_shared;
35 using serialization::SerializableBuffer;
51 throw std::length_error(
"Length given too small to parse CPF Item type and length");
55 reader.
read(item_length);
56 if (length < item_length + 4)
58 throw std::length_error(
"Length given too small to parse CPF Item Data");
68 reader.
read(item_length);
77 item_data_ = make_shared<SerializableBuffer>();