#include <console_handler.h>
|
| | async_console_handler () |
| template<class t_server, class chain_handler> |
| bool | run (t_server *psrv, chain_handler ch_handler, std::function< std::string(void)> prompt, const std::string &usage="") |
| template<class chain_handler> |
| bool | run (chain_handler ch_handler, std::function< std::string(void)> prompt, const std::string &usage="", std::function< void(void)> exit_handler=NULL) |
| void | stop () |
| void | cancel () |
| void | print_prompt () |
|
| template<typename t_cmd_handler> |
| bool | run (std::function< std::string(void)> prompt, const std::string &usage, const t_cmd_handler &cmd_handler, std::function< void(void)> exit_handler) |
◆ async_console_handler()
| epee::async_console_handler::async_console_handler |
( |
| ) |
|
|
inline |
◆ cancel()
| void epee::async_console_handler::cancel |
( |
| ) |
|
|
inline |
◆ print_prompt()
| void epee::async_console_handler::print_prompt |
( |
| ) |
|
|
inline |
◆ run() [1/3]
template<class chain_handler>
| bool epee::async_console_handler::run |
( |
chain_handler | ch_handler, |
|
|
std::function< std::string(void)> | prompt, |
|
|
const std::string & | usage = "", |
|
|
std::function< void(void)> | exit_handler = NULL ) |
|
inline |
◆ run() [2/3]
template<typename t_cmd_handler>
| bool epee::async_console_handler::run |
( |
std::function< std::string(void)> | prompt, |
|
|
const std::string & | usage, |
|
|
const t_cmd_handler & | cmd_handler, |
|
|
std::function< void(void)> | exit_handler ) |
|
inlineprivate |
◆ run() [3/3]
template<class t_server, class chain_handler>
| bool epee::async_console_handler::run |
( |
t_server * | psrv, |
|
|
chain_handler | ch_handler, |
|
|
std::function< std::string(void)> | prompt, |
|
|
const std::string & | usage = "" ) |
|
inline |
◆ stop()
| void epee::async_console_handler::stop |
( |
| ) |
|
|
inline |
◆ m_cancel
| std::atomic<bool> epee::async_console_handler::m_cancel = {false} |
|
private |
◆ m_prompt
| std::function<std::string(void)> epee::async_console_handler::m_prompt |
|
private |
◆ m_running
| std::atomic<bool> epee::async_console_handler::m_running = {true} |
|
private |
◆ m_stdin_reader
The documentation for this class was generated from the following file: