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:
parent
99732f6dd8
commit
c455582a4e
3 changed files with 51 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue