Hopefully this is enough of an example to show you what I'm looking for. Basically, whatever mystr is will match the name of a function and I need it to call that particular function. Thanks!
I have a server wich contains the object server with an attribute "a".
When a client request the content of "a" the request of the client is "server.a", so if I save this as an string in the server then i just have to call this string. Could I do this?
This is not the only way, or even necessarily the best way, to do this, but it is simple and works in both C and C++. See The Function Pointer Tutorials http://www.newty.de/fpt/index.html
for more on using function pointers.
Another answer would be to use an array of descendant classes which identify themselves based upon the input. (C++ only.)