Joedb 9.5.0
The Journal-Only Embedded Database
|
#include <joedb/ui/Command_Interpreter.h>
Public Member Functions | |
Command_Interpreter () | |
void | add_processor (Command_Processor &processor) |
void | set_parent (const Command_Interpreter *new_parent) |
virtual void | write_prompt (std::ostream &out) const |
void | write_whole_prompt (std::ostream &out) const |
void | set_echo (bool new_echo) |
void | set_rethrow (bool new_rethrow) |
void | set_prompt (bool new_prompt) |
void | main_loop (std::istream &in, std::ostream &out) |
![]() | |
virtual | ~Command_Processor () |
Protected Member Functions | |
Status | process_command (const std::string &command, std::istream ¶meters, std::istream &in, std::ostream &out) override |
Additional Inherited Members | |
![]() | |
enum class | Status { ok , done , quit , abort , not_found } |
Definition at line 14 of file Command_Interpreter.h.
joedb::Command_Interpreter::Command_Interpreter | ( | ) |
Definition at line 87 of file Command_Interpreter.cpp.
void joedb::Command_Interpreter::add_processor | ( | Command_Processor & | processor | ) |
Definition at line 94 of file Command_Interpreter.cpp.
void joedb::Command_Interpreter::main_loop | ( | std::istream & | in, |
std::ostream & | out | ||
) |
Definition at line 137 of file Command_Interpreter.cpp.
|
overrideprotectedvirtual |
Implements joedb::Command_Processor.
Reimplemented in joedb::Writable_Client_Command_Processor.
Definition at line 34 of file Command_Interpreter.cpp.
|
inline |
Definition at line 47 of file Command_Interpreter.h.
void joedb::Command_Interpreter::set_parent | ( | const Command_Interpreter * | new_parent | ) |
Definition at line 101 of file Command_Interpreter.cpp.
|
inline |
Definition at line 49 of file Command_Interpreter.h.
|
inline |
Definition at line 48 of file Command_Interpreter.h.
|
virtual |
Reimplemented in joedb::Client_Command_Processor.
Definition at line 115 of file Command_Interpreter.cpp.
void joedb::Command_Interpreter::write_whole_prompt | ( | std::ostream & | out | ) | const |
Definition at line 122 of file Command_Interpreter.cpp.