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

#include <joedb/ui/Command_Interpreter.h>

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

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)
 
- Public Member Functions inherited from joedb::Command_Processor
virtual ~Command_Processor ()
 

Protected Member Functions

Status process_command (const std::string &command, std::istream &parameters, std::istream &in, std::ostream &out) override
 

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 Command_Interpreter.h.

Constructor & Destructor Documentation

◆ Command_Interpreter()

joedb::Command_Interpreter::Command_Interpreter ( )

Definition at line 87 of file Command_Interpreter.cpp.

Member Function Documentation

◆ add_processor()

void joedb::Command_Interpreter::add_processor ( Command_Processor processor)

Definition at line 94 of file Command_Interpreter.cpp.

◆ main_loop()

void joedb::Command_Interpreter::main_loop ( std::istream &  in,
std::ostream &  out 
)

Definition at line 137 of file Command_Interpreter.cpp.

◆ process_command()

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

Implements joedb::Command_Processor.

Definition at line 34 of file Command_Interpreter.cpp.

◆ set_echo()

void joedb::Command_Interpreter::set_echo ( bool  new_echo)
inline

Definition at line 47 of file Command_Interpreter.h.

◆ set_parent()

void joedb::Command_Interpreter::set_parent ( const Command_Interpreter new_parent)

Definition at line 101 of file Command_Interpreter.cpp.

◆ set_prompt()

void joedb::Command_Interpreter::set_prompt ( bool  new_prompt)
inline

Definition at line 49 of file Command_Interpreter.h.

◆ set_rethrow()

void joedb::Command_Interpreter::set_rethrow ( bool  new_rethrow)
inline

Definition at line 48 of file Command_Interpreter.h.

◆ write_prompt()

void joedb::Command_Interpreter::write_prompt ( std::ostream &  out) const
virtual

Definition at line 115 of file Command_Interpreter.cpp.

◆ write_whole_prompt()

void joedb::Command_Interpreter::write_whole_prompt ( std::ostream &  out) const

Definition at line 122 of file Command_Interpreter.cpp.


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