From: <j....@at...> - 2003-07-10 23:18:54
|
I just discovered OpenC++ and really like the idea. One of the things mentioned as a possibility (and what led me to find OpenC++) is a persistence mechanism. I looked through the samples and have Googled and don't see anyone having defined a persistence mechanism in OpenC++. (I would have searched the archives for this list too, if there had been any :)). So, I am left wondering, what is probably a FAQ, are there any persistence abilities already defined using OpenC++? Has anyone developed one? What I am looking for would be something similar to a persistent keyword that could be defined with a class (persistent class Class). This would then generate some sort of method (something like an ostream& operator<<(Class&) method) if one isn't present, similarly to the way a default constructor is created when one isn't supplied. There might be better ways to do it, that's just what has come to me so far. Also, what about say profiling methods on a class? You could put in a profile keyword that would generate a prefix and postfix method. I guess this is similar to the after and before accessors and could be used as such. Hm. Just some random thoughts and questions. I don't want to duplicate anything anyone has done before, and would be interested in hearing of the pitfalls of trying something like this. I'm afraid my exuberation has blinded me to the potential pitfalls this early in my consideration :) Thanks, Jay |