Joedb
9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
ui
Command_Processor.h
Go to the documentation of this file.
1
#ifndef joedb_Command_Processor_declared
2
#define joedb_Command_Processor_declared
3
4
#include <string>
5
#include <iostream>
6
7
namespace
joedb
8
{
9
/// @ingroup ui
10
class
Command_Processor
11
{
12
public
:
13
enum class
Status
{
ok
,
done
,
quit
,
abort
,
not_found
};
14
15
virtual
Status
process_command
16
(
17
const
std::string &command,
18
std::istream ¶meters,
19
std::istream &in,
20
std::ostream &out
21
) = 0;
22
23
virtual
~Command_Processor
();
24
};
25
}
26
27
#endif
joedb::Command_Processor
Definition
Command_Processor.h:11
joedb::Command_Processor::Status
Status
Definition
Command_Processor.h:13
joedb::Command_Processor::Status::ok
@ ok
joedb::Command_Processor::Status::abort
@ abort
joedb::Command_Processor::Status::done
@ done
joedb::Command_Processor::Status::not_found
@ not_found
joedb::Command_Processor::Status::quit
@ quit
joedb::Command_Processor::process_command
virtual Status process_command(const std::string &command, std::istream ¶meters, std::istream &in, std::ostream &out)=0
joedb::Command_Processor::~Command_Processor
virtual ~Command_Processor()
joedb
Definition
Blob.h:7
Generated by
1.9.8