I'm trying to make a console shell for a simple virtual machine I'm making.
When the shell receives a command, It should call the corresponding function with all the arguments provided with (-option_name argument) syntax.
But I realized that the list of those functions will grow over time.
Is there any way store the whole database, such that given the primary key (the command) it would know how to call the corresponding function..?
I tried to use the STL types like map and set, but could only use them to store the nascent thing in ram...