Re: How do database repository files work?
My problem is I have a class with a vector as a member. I want to save the object to disk (including the vector). The size of the vector will very and things will constantly be add and deleted. Just writing the whole object to disk seems ok when the vector is small, but what if there are thousands of nodes in the vector? I thougt maybe looking at how databases manage large amounts of data might offer a solution. But then again, maybe my concern is a non-issue.
To read and write the object I've been using:
Info a;
f.write( reinterpret_cast<const char*>(&a), sizeof(a) );
Info z;
g.read((char*)(&z), sizeof(z));
I know how to build. What to build is a completely different story.