1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-23 16:10:51 +00:00

Provide some wrappers so adding commands is more convenient.

This commit is contained in:
King_DuckZ 2016-01-22 19:54:32 +00:00
parent 99732f6dd8
commit c455582a4e
3 changed files with 51 additions and 7 deletions

View file

@ -34,6 +34,11 @@ namespace din {
~CommandProcessor ( void ) noexcept;
void add_command ( std::string&& parName, CmdCallback parCallback, uint32_t parExpParams );
void add_command ( std::string&& parName, std::function<void()> parCallback, uint32_t parExpParams );
void add_command ( std::string&& parName, std::function<void(const std::string&)> parCallback, uint32_t parExpParams );
void add_command ( std::string&& parName, std::function<bool()> parCallback, uint32_t parExpParams );
void add_command ( std::string&& parName, void(*parCallback)(), uint32_t parExpParams );
void add_command ( std::string&& parName, bool(*parCallback)(), uint32_t parExpParams );
bool exec_command ( const std::string& parCommand );
private: