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

#include <joedb/ui/Readable_Command_Processor.h>

Inheritance diagram for joedb::Readable_Command_Processor:
Collaboration diagram for joedb::Readable_Command_Processor:

Public Member Functions

void print_table (std::ostream &out, Table_Id table_id, size_t max_column_width=0, Record_Id start=Record_Id::null, size_t length=0)
 Readable_Command_Processor (const Readable &readable)
Public Member Functions inherited from joedb::Command_Processor
virtual ~Command_Processor ()

Static Public Member Functions

static Table_Id parse_table (std::istream &in, const Readable &readable)

Protected Member Functions

void write_value (std::ostream &out, Table_Id table_id, Record_Id record_id, Field_Id field_id)
Status process_command (std::string_view command, std::istream &parameters, std::istream &in, std::ostream &out) override

Protected Attributes

const Readable & readable

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file Readable_Command_Processor.h.

Constructor & Destructor Documentation

◆ Readable_Command_Processor()

joedb::Readable_Command_Processor::Readable_Command_Processor ( const Readable & readable)
inline

Definition at line 48 of file Readable_Command_Processor.h.

Member Function Documentation

◆ parse_table()

Table_Id joedb::Readable_Command_Processor::parse_table ( std::istream & in,
const Readable & readable )
static

Definition at line 16 of file Readable_Command_Processor.cpp.

◆ print_table()

void joedb::Readable_Command_Processor::print_table ( std::ostream & out,
Table_Id table_id,
size_t max_column_width = 0,
Record_Id start = Record_Id::null,
size_t length = 0 )

Definition at line 32 of file Readable_Command_Processor.cpp.

◆ process_command()

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

Implements joedb::Command_Processor.

Definition at line 155 of file Readable_Command_Processor.cpp.

◆ write_value()

void joedb::Readable_Command_Processor::write_value ( std::ostream & out,
Table_Id table_id,
Record_Id record_id,
Field_Id field_id )
inlineprotected

Definition at line 17 of file Readable_Command_Processor.h.

Member Data Documentation

◆ readable

const Readable& joedb::Readable_Command_Processor::readable
protected

Definition at line 15 of file Readable_Command_Processor.h.


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