Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb::Writable_Client_Command_Processor Class Reference

#include <joedb/ui/Client_Command_Processor.h>

Inheritance diagram for joedb::Writable_Client_Command_Processor:
Collaboration diagram for joedb::Writable_Client_Command_Processor:

Public Member Functions

 Writable_Client_Command_Processor (Writable_Client &client)
Status process_command (std::string_view command, std::istream &parameters, std::istream &in, std::ostream &out) override
Public Member Functions inherited from joedb::Client_Command_Processor
 Client_Command_Processor (Client &client)
void write_prompt (std::ostream &out) const override
void run_interpreter (Command_Interpreter &interpreter, std::istream &in, std::ostream &out)
Public Member Functions inherited from joedb::Command_Interpreter
 Command_Interpreter ()
void add_processor (Command_Processor &processor)
void set_parent (const Command_Interpreter *new_parent)
void set_prompt_string (std::string s)
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)
bool is_last_line_empty () const
Public Member Functions inherited from joedb::Command_Processor
virtual ~Command_Processor ()

Additional Inherited Members

Public Types inherited from joedb::Command_Processor
enum class  Status {
  ok , done , quit , abort ,
  not_found
}
Static Protected Member Functions inherited from joedb::Client_Command_Processor
static bool sleep (float seconds, std::ostream &out)
Protected Attributes inherited from joedb::Client_Command_Processor
Client & client

Detailed Description

Definition at line 57 of file Client_Command_Processor.h.

Constructor & Destructor Documentation

◆ Writable_Client_Command_Processor()

joedb::Writable_Client_Command_Processor::Writable_Client_Command_Processor ( Writable_Client & client)
inline

Definition at line 69 of file Client_Command_Processor.h.

Member Function Documentation

◆ process_command()

Command_Processor::Status joedb::Writable_Client_Command_Processor::process_command ( std::string_view command,
std::istream & parameters,
std::istream & in,
std::ostream & out )
overridevirtual

Reimplemented from joedb::Client_Command_Processor.

Definition at line 190 of file Client_Command_Processor.cpp.


The documentation for this class was generated from the following files: