Subject: Re: [boost] Is there any interest in a library which solves C++ class reflection feature just like Java does?
From: jinhua luo (ljh.home.king_at_[hidden])
Date: 2011-12-07 09:21:49
Just to clarify that my reflection does not need to make any assumption
about the reflected class, i.e. inherited from any virtual base class
(interface) or not, and the reflection API do not need to know anything
about the reflected class definition or its base interface class if any. So
you can see that the main program in my example does not include any
compile-time information about the reflected class. And the shared library
does not export any symbol (in fact the registration just happens when you
dlopen that library).
2011/12/7 jinhua luo <ljh.home.king_at_[hidden]>
> Hi Matus,
> Could you write some codes to implement the same example I showed in my
> first mail? That is, define a concrete class in the shared library, and
> declare/register it there, while the main program just dynamically loads
> the shared library (note that do not need any initialization, just dlopen
> is enough, do not need any symbol exported there and be loaded via dlsym),
> reflects the class, invoke its methods, access its members.
> Then we can have more clear comparison regarding the same context between
> two libraries.
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk