G
Ganesh Chakka
I am trying to solve a problem in our application. I am at a point
where I want to invoke a method on the object based on the name of the
method.
======================================================
For Example :
From a configuration file I would know that I have to invoke a method
"foo" on object "o".
So, I have 2 strings "foo" and "o" in the code at run time.
I have to now do something to invoke this method "foo" on "o". That is
I have to do o.foo() at runtime.
======================================================
I know this is possible in java using reflection. Does any one know
how I can do this in C++?
Thanks in advance for any help.
-Ganesh.
where I want to invoke a method on the object based on the name of the
method.
======================================================
For Example :
From a configuration file I would know that I have to invoke a method
"foo" on object "o".
So, I have 2 strings "foo" and "o" in the code at run time.
I have to now do something to invoke this method "foo" on "o". That is
I have to do o.foo() at runtime.
======================================================
I know this is possible in java using reflection. Does any one know
how I can do this in C++?
Thanks in advance for any help.
-Ganesh.