I apologize if this has already been posted, but the word 'introspection' doesn't bring any search results in this section of the forum. I also did not find anything in the presentations about introspection, so I assume Poco doesn't have any. Please feel free to correct me.
Anyway, on to the wish: sometimes it is necessary to be able to do actions on code that are defined by runtime parameters; for example, invoking a function by name, getting the fields and methods of a class, walking the inheritance tree, examining the properties of an object, etc. This can be done by introspection, of which C++ does not offer any.
One of the very useful things introspection could do for us is to allow us to convert values from enumerations to integers in a safe manner, as well as automatically discover the names of the values of an enumeration, its minimum and maximum value, the number of values, etc.
I think that the C preprocessor could be 'abused' in some way, along with templates, to provide us a little framework within Poco that can be used to manually provide introspection for our objects.
What do you Poco users think?





