Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
joedb::Client_Command_Processor Class Reference

#include <joedb/ui/Client_Command_Processor.h>

Inheritance diagram for joedb::Client_Command_Processor:
Inheritance graph
[legend]
Collaboration diagram for joedb::Client_Command_Processor:
Collaboration graph
[legend]

Public Member Functions

 Client_Command_Processor (Client &client)
 
void write_prompt (std::ostream &out) const override
 
Status process_command (const std::string &command, std::istream &parameters, std::istream &in, std::ostream &out) override
 
- 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 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)
 
- Public Member Functions inherited from joedb::Command_Processor
virtual ~Command_Processor ()
 

Protected Member Functions

virtual std::string get_name () const
 
- Protected Member Functions inherited from joedb::Command_Interpreter
Status process_command (const std::string &command, std::istream &parameters, std::istream &in, std::ostream &out) override
 

Static Protected Member Functions

static void sleep (int seconds, std::ostream &out)
 

Protected Attributes

Clientclient
 

Additional Inherited Members

- Public Types inherited from joedb::Command_Processor
enum class  Status {
  ok , done , quit , abort ,
  not_found
}
 

Detailed Description

Definition at line 14 of file Client_Command_Processor.h.

Constructor & Destructor Documentation

◆ Client_Command_Processor()

joedb::Client_Command_Processor::Client_Command_Processor ( Client client)
inline

Definition at line 27 of file Client_Command_Processor.h.

Member Function Documentation

◆ get_name()

virtual std::string joedb::Client_Command_Processor::get_name ( ) const
inlineprotectedvirtual

Definition at line 24 of file Client_Command_Processor.h.

◆ process_command()

Command_Processor::Status joedb::Client_Command_Processor::process_command ( const std::string &  command,
std::istream &  parameters,
std::istream &  in,
std::ostream &  out 
)
overridevirtual

Implements joedb::Command_Processor.

Reimplemented in joedb::Writable_Client_Command_Processor.

Definition at line 70 of file Client_Command_Processor.cpp.

◆ sleep()

void joedb::Client_Command_Processor::sleep ( int  seconds,
std::ostream &  out 
)
staticprotected

Definition at line 59 of file Client_Command_Processor.cpp.

◆ write_prompt()

void joedb::Client_Command_Processor::write_prompt ( std::ostream &  out) const
overridevirtual

Reimplemented from joedb::Command_Interpreter.

Definition at line 20 of file Client_Command_Processor.cpp.

Member Data Documentation

◆ client

Client& joedb::Client_Command_Processor::client
protected

Definition at line 21 of file Client_Command_Processor.h.


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