Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Serialization of Graph-like C++ Structures

0 views
Skip to first unread message

Nordlöw

unread,
Jul 9, 2009, 7:12:23 AM7/9/09
to
Does anyone know of any convenient interface/API (Database) that
transparently encodes/decodes (serialization) graph-like C++
structures and relations between them to and from disk? I believe this
ought to have something to do with OODBMS, right?

Of course the programmer needs explicitly specify the serialization of
the data-members of the struct/class typically using the member
functions

- Obj::encode(std::ostream & os)
- Obj::decode(std::ostream & os).

I have also implemented "automatic management" of two-way-relations to
realized unordered graph structures.
These are realized as enum-typed double-linked/way pointers.
These could be (un)serialized automatically

Could we reuse boost::graph and boost::serialization somehow?

If not, what structures (balanced tree, hashmap, sorted arrays, ...)
should I use to construct file-format?

Thanks in advance,
Nordlöw

0 new messages