"Bogdan Sarbu" <bcs (AT) sarnet (DOT) dk> wrote
Quote:
What should I do to store C++ objects in the Berkeley DB? |
Berkeley DB simply stores arbitrary chunks of binary data, so your
application needs to serialize/marshal your C++ objects into that
form.
There are various ways to do this, each with its own
convenience/speed/data-size/complexity tradeoffs. Or you can roll
your own (we did, as it's such a critical layer). I'd recommend
searching on ASN.1, YAML, XML object persistence, C++ persistence,
etc. Also, I think someone at www.boost.org is working on a
persistence library but I'm not sure if it's done yet or just in the
discussion phase.
Chris