#include <console_handler.h>
|
| bool | start_handling (std::function< std::string(void)> prompt, const std::string &usage_string="", std::function< void(void)> exit_handler=NULL) |
| |
| bool | start_handling (const std::string &prompt, const std::string &usage_string="", std::function< void(void)> exit_handler=NULL) |
| |
| void | stop_handling () |
| |
| bool | run_handling (std::function< std::string(void)> prompt, const std::string &usage_string, std::function< void(void)> exit_handler=NULL) |
| |
| void | print_prompt () |
| |
Public Member Functions inherited from epee::command_handler |
| std::string | get_usage () |
| |
| std::pair< std::string, std::string > | get_documentation (const std::vector< std::string > &cmd) |
| |
| void | set_handler (const std::string &cmd, const callback &hndlr, const std::string &usage="", const std::string &description="") |
| |
| bool | process_command_vec (const std::vector< std::string > &cmd) |
| |
| bool | process_command_str (const std::string &cmd) |
| |
Definition at line 543 of file console_handler.h.
◆ print_prompt()
| void epee::console_handlers_binder::print_prompt |
( |
| ) |
|
|
inline |
◆ run_handling()
| bool epee::console_handlers_binder::run_handling |
( |
std::function< std::string(void)> |
prompt, |
|
|
const std::string & |
usage_string, |
|
|
std::function< void(void)> |
exit_handler = NULL |
|
) |
| |
|
inline |
Definition at line 566 of file console_handler.h.
bool run(t_server *psrv, chain_handler ch_handler, std::function< std::string(void)> prompt, const std::string &usage="")
bool process_command_str(const std::string &cmd)
◆ start_handling() [1/2]
| bool epee::console_handlers_binder::start_handling |
( |
std::function< std::string(void)> |
prompt, |
|
|
const std::string & |
usage_string = "", |
|
|
std::function< void(void)> |
exit_handler = NULL |
|
) |
| |
|
inline |
Definition at line 550 of file console_handler.h.
553 m_console_thread->detach();
bool run_handling(std::function< std::string(void)> prompt, const std::string &usage_string, std::function< void(void)> exit_handler=NULL)
◆ start_handling() [2/2]
| bool epee::console_handlers_binder::start_handling |
( |
const std::string & |
prompt, |
|
|
const std::string & |
usage_string = "", |
|
|
std::function< void(void)> |
exit_handler = NULL |
|
) |
| |
|
inline |
Definition at line 556 of file console_handler.h.
558 return start_handling([prompt](){
return prompt; }, usage_string, exit_handler);
bool start_handling(std::function< std::string(void)> prompt, const std::string &usage_string="", std::function< void(void)> exit_handler=NULL)
◆ stop_handling()
| void epee::console_handlers_binder::stop_handling |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/include/console_handler.h