Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Readable_Command_Processor.h
Go to the documentation of this file.
1#ifndef joedb_Readable_Command_Processor_declared
2#define joedb_Readable_Command_Processor_declared
3
6
7namespace joedb
8{
9 class Readable;
10
11 /// @ingroup ui
13 {
14 protected:
16
18 (
19 std::ostream &out,
20 Table_Id table_id,
21 Record_Id record_id,
22 Field_Id field_id
23 )
24 {
25 joedb::write_value(out, readable, table_id, record_id, field_id);
26 }
27
29 (
30 const std::string &command,
31 std::istream &parameters,
32 std::istream &in,
33 std::ostream &out
34 ) override;
35
36 public:
37 static Table_Id parse_table(std::istream &in, const Readable &readable);
38
39 void print_table
40 (
41 std::ostream &out,
42 Table_Id table_id,
43 size_t max_column_width = 0,
45 size_t length = 0
46 );
47
51 };
52}
53
54#endif
static Table_Id parse_table(std::istream &in, const Readable &readable)
Status process_command(const std::string &command, std::istream &parameters, std::istream &in, std::ostream &out) override
void write_value(std::ostream &out, Table_Id table_id, Record_Id record_id, Field_Id field_id)
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)
static const Record_Id null
Definition index_types.h:44
void write_value(std::ostream &out, const Readable &readable, Table_Id table_id, Record_Id record_id, Field_Id field_id)