mirror of
https://github.com/monero-project/monero.git
synced 2025-01-28 18:56:31 +02:00
27 lines
519 B
C++
27 lines
519 B
C++
#pragma once
|
|
|
|
#include "console_handler.h"
|
|
#include "daemon/interactive_command_executor.h"
|
|
#include "daemon/command_parser_executor.h"
|
|
|
|
namespace daemonize {
|
|
|
|
class t_command_server {
|
|
private:
|
|
t_command_parser_executor m_parser;
|
|
epee::command_handler m_command_lookup;
|
|
public:
|
|
t_command_server(
|
|
t_command_executor * executor
|
|
);
|
|
|
|
bool process_command(const std::string& cmd);
|
|
|
|
private:
|
|
bool help(const std::vector<std::string>& args);
|
|
|
|
std::string get_commands_str();
|
|
};
|
|
|
|
} // namespace daemonize
|