Boost logo

Boost Users :

Subject: Re: [Boost-users] Can boost help me organize/parse lots of binary data?
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-02-21 06:34:11


On 21 February 2013 11:23, Gabriel Bizzotto <gbizzotto_at_[hidden]> wrote:
>
>> class Item
>> {
>> virtual void Decode(istream& Stream) = 0;
>> }
>
>> class Double : public Item
>> class String : public Item
>
>> class EmployeePacket
>> {
>> std::vector<Item*> Items;
> ...
>
>
> Maybe boost::any will do better here ?

And for parsing, Boost.Spirit.

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net