开发者

Serialization over Pipes

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 de开发者_如何学JAVAcimal), 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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜