Implementation of processing of commands on CallTable with modules on modern C ++

In this article I will describe the process of developing a class "call tables" and applying the resulting class to extend the functionality of the program using modules.
 

On the problem


 
There is a server that accepts commands. At the input, it gets the index of the command and its parameters, performs the actions, and returns the result. Command indexes are consistent: ???? etc. At startup, the server has several basic commands (in my case 20), the others are added by modules during operation. To solve this problem, CallTable is well suited.
 
Link to github with the code of this article.
+ 0 -

Add comment