monero/src/daemon/command_server.h
2014-06-20 15:29:46 -04:00

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