custom loose coupling from string
assume I've a string
Code:
string methodName="xyz";
Now I want someObject.methodName() or someObject->methodName() which will actually do someObject->xyz();
Now How this job can be performed with C++.
remember the Objectname is known however the methodName is not (e.g. methodName is specified by a string variable)
EDIT
I am not stuck on someObject.methodName() syntax. this can be performed by any syntax. I ultimately call the xyz() method e.g. the method with the same name as the value ofthe string methodName() somehow.
EDIT
Platform Independent Solutions (If possible) are most Welcome