[Resent; stupid me forgot to change the To: field, and I've been waiting for the past two days for a reply. :P ]
I apologize for the vagueness of my original post. It was written at the end of the very tiring day (or the start of one; depends on how you look at it).
Anyway, here's what I failed to provide the first time around. I hope this is much more useful.
I have several objects with no common parent, though all of them have a private member called structure. With each object, `structure' is of a different record type.
What I'd like to be able to do is write generic functions that would take any object and write its structure member into file, or read a structure in a file and assign it to said object's structure member.
I know I can make an abstract root object that implements a common inheritance for all the objects that need to be written to and read from a file, but I'm lazy, and since these functions will be doing basically the same thing (managing binding types, reading to/writing from streams), I'd like to write just one function for each job, which figures out how to bind bindable variables depending on which object/record I throw at it.
Oh, and Frank mentioned storing objects in streams; I'm kind of curious how this works; I'm not exactly new at OO, but I've never written objects to streams. All I've been doing so far is writing records inside objects into files.
Thanks for the help, guys. :)