1#ifndef joedb_Command_Interpreter_declared
2#define joedb_Command_Interpreter_declared
17 std::vector<std::reference_wrapper<Command_Processor>> processors;
19 std::string prompt_string =
"joedbi";
24 bool last_line_empty =
true;
30 const std::string &line,
37 const std::string &command,
38 std::istream ¶meters,
50 void set_echo(
bool new_echo) {echo = new_echo;}
53 void main_loop(std::istream &in, std::ostream &out);
void set_parent(const Command_Interpreter *new_parent)
void main_loop(std::istream &in, std::ostream &out)
void set_echo(bool new_echo)
void set_prompt(bool new_prompt)
void write_whole_prompt(std::ostream &out) const
void set_prompt_string(std::string s)
Status process_command(const std::string &command, std::istream ¶meters, std::istream &in, std::ostream &out) override
void add_processor(Command_Processor &processor)
virtual void write_prompt(std::ostream &out) const
bool is_last_line_empty() const
void set_rethrow(bool new_rethrow)