Boost logo

Boost Users :

Subject: [Boost-users] Can boost help me organize/parse lots of binary data?
From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2013-02-20 18:05:09


I am receiving a "live" stream of binary data that represents the
states of various objects. Sort of like this:
Car
Speed (m/s): float32
Temperature (deg): uint16
 ...

My real packets have hundreds of items in them. I will be decoding
many of these "packets" and doing various things with them like
printing their values to console, etc.

My plan is just to make classes:

class Car
{
  public:
    void Decode(istream&);
  private:
   float speed;
   unsigned temperature
   ...
};

But it will not be very extendable.

Unfocused open-ended question: Does boost offer something that will
help me with this?

Thank you,

Chris


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