I’m working in a project where I’m writing a plugin for a particular package.
This package implements a “new” method in one of its headers, and as such, I am unable to include <strstream> as it also implements “new”.
The package sdk also includes a thinned out and very old version of boost, which means that I can’t use the boost serialization classes. It is built on Qt for VS2008, and we are (required for this project) to be in VS2005, so I can’t include Qt either.
I need to be able to get data from an externally running application, sending the data over TCPIP. What is the best way for me to serialize out the data from the source and read it back in with these limitations?
I’m currently tempted to make a struct which could contain all possible data that might be sent over, and then just copying the memory of that struct into a block of bytes which gets sent over, but this sounds like a bad approach to me.
Thanks,
Liron
Google Protobuf