ucbrise / fluent-old

Bloom + C++
17 stars 3 forks source link

Revised serialization code. #76

Closed mwhittaker closed 7 years ago

mwhittaker commented 7 years ago

Previously, serialization between channels was done with global ToString and FromString methods. Relying on a global function is not very flexible and also pretty confusing.

This commit introduces a MockPickler struct template which can be used to pickle and unpickle C++ objects. It has the exact same functionality of the global ToString and FromString functions from before, but now it's not some global thing.

All the code that does serialization (e.g. Channel, FluentExecutor) is now parameterized on a Pickler.

Fixes #61.