I wrote several simulation programs in C++ and want to connect their outputs/inputs with pipes (best solution would probably be to use the C++ streams).
For this I would like to serialize some objects (for example the simulations output/input are tensors and matrices). How should I handle this problem? I searched around for some time for serialization + pipes on google but was not really able to find anything about this…
Any tips on a starting point? Is it easy for example to use the boost/serialization to exchange objects with pipes? Generally I would be pleased, if serialization is text-based (to avoid rounding errors I would send hex-values rather than decimal), so I could redirect the output streams into textfiles, split them up etc… Also this way I could probably write my simulations in different programs…
Thx for all the answers!
Check these libraries:
http://en.wikipedia.org/wiki/Thrift_(protocol)
http://code.google.com/apis/protocolbuffers/