Original Post
Hello
I am writing a Console class to try and make a Quake style console. Anyway, I have it using a hash tabel to break commands down into an array of pointers towards objects of a simple class describing the command, ie, the actual syntax, what permissions are required to execute it and so on.
Any way, one of the parameters that I want to recieve is a pointer to a function of an indetermined type. I plan on storing it as a part of the command syntax, and will then rebuild it to the right structure to pass to the fuction at run-time. The problem is, that I can''t figure out any way to do this without having a huge list of overloaded functions that will translate the address into a generalized form for me. Is there any other way? Is there any way to really allow total flexability on this, or do I have to restrict the console to a set of permutaitons on function parameter type, order and quantity?
Thank you
Sleep is for the weak...
To bad I need more