C++ Q: suggestion on how to do an object database
Posted on 1998-08-13
I'm in the process of making a database in which object instances are storing their data. This data can have a variable length, and of undefined type!
The way i solved this (with a bit of help from an earlier Q here :) is to register the objects in the database and then let the object do the things it want to do in the database (like reading and writing). The advantage is that the database can store every kind of object (which has the base database object as parent).
This is very error-sensitive. If one object f*cks up, the entire database might get corrupted.
Any suggestions here would be very appreciated,
[Compiler: doesn't matter, pure C++ Question]
[OS: look above]