dbTalk Databases Forums  

Serialization of Graph-like C++ Structures

comp.databases.object comp.databases.object


Discuss Serialization of Graph-like C++ Structures in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nordlöw
 
Posts: n/a

Default Serialization of Graph-like C++ Structures - 07-09-2009 , 06:12 AM






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:stream & os)
- Obj::decode(std:stream & 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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.