monero/src/daemon/command_server.h

27 lines
519 B
C
Raw Normal View History

2014-03-04 00:07:58 +02:00
#pragma once
2014-06-20 22:29:46 +03:00
#include "console_handler.h"
2014-06-20 21:49:43 +03:00
#include "daemon/interactive_command_executor.h"
2014-06-20 02:02:22 +03:00
#include "daemon/command_parser_executor.h"
namespace daemonize {
2014-03-04 00:07:58 +02:00
class t_command_server {
private:
2014-06-20 02:02:22 +03:00
t_command_parser_executor m_parser;
2014-06-20 22:29:46 +03:00
epee::command_handler m_command_lookup;
public:
2014-06-20 02:02:22 +03:00
t_command_server(
2014-06-20 22:29:46 +03:00
t_command_executor * executor
);
2014-06-20 22:29:46 +03:00
bool process_command(const std::string& cmd);
private:
2014-06-20 22:29:46 +03:00
bool help(const std::vector<std::string>& args);
2014-06-20 22:29:46 +03:00
std::string get_commands_str();
};
} // namespace daemonize