I'm thinking about adding some sort of reflection capabilities to some C++ classes ( so that I wouldn't have to use RTTI ): getting names of methods, declared fields, class name ... this sort of stuff.
I was thinking about parsing existing source files, get a list of declared fields & methods, and rewrite each source file, adding this sort of information to each class.
What do you think about this approach? I'd like to do everything from scratch, since I think it's a great opportunity to learn. Would you suggest other ways of doing this?
//OFFTOPIC: is this how Qt does it?