Joedb
10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
ui
Interpreter.h
Go to the documentation of this file.
1
#ifndef joedb_Interpreter_declared
2
#define joedb_Interpreter_declared
3
4
#include "
joedb/ui/Command_Interpreter.h
"
5
#include "
joedb/ui/Readable_Command_Processor.h
"
6
#include "
joedb/ui/Writable_Command_Processor.h
"
7
#include "
joedb/ui/Readable_Writable_Command_Processor.h
"
8
9
namespace
joedb
10
{
11
/// @ingroup ui
12
class
Readable_Interpreter
:
public
Command_Interpreter
13
{
14
protected
:
15
Readable_Command_Processor
readable_command_processor
;
16
17
public
:
18
Readable_Interpreter
(
const
Readable
&readable):
19
readable_command_processor
(readable)
20
{
21
add_processor
(
readable_command_processor
);
22
}
23
};
24
25
/// @ingroup ui
26
class
Writable_Interpreter
:
public
Command_Interpreter
27
{
28
protected
:
29
Writable_Command_Processor
writable_command_processor
;
30
31
public
:
32
Writable_Interpreter
(
Writable
&writable):
33
writable_command_processor
(writable)
34
{
35
add_processor
(
writable_command_processor
);
36
}
37
};
38
39
/// @ingroup ui
40
class
Interpreter
:
public
Command_Interpreter
41
{
42
private
:
43
Writable_Command_Processor
writable_command_processor;
44
Readable_Writable_Command_Processor
readable_writable_command_processor;
45
46
public
:
47
Interpreter
48
(
49
const
Readable
&readable,
50
Writable
&writable,
51
Record_Id
max_record_id
52
):
53
writable_command_processor(writable),
54
readable_writable_command_processor
55
(
56
readable,
57
writable,
58
max_record_id
59
)
60
{
61
add_processor
(writable_command_processor);
62
add_processor
(readable_writable_command_processor);
63
}
64
};
65
}
66
67
#endif
Command_Interpreter.h
Readable_Command_Processor.h
Readable_Writable_Command_Processor.h
Writable_Command_Processor.h
joedb::Command_Interpreter
Definition
Command_Interpreter.h:15
joedb::Command_Interpreter::add_processor
void add_processor(Command_Processor &processor)
Definition
Command_Interpreter.cpp:94
joedb::Interpreter
Definition
Interpreter.h:41
joedb::Interpreter::Interpreter
Interpreter(const Readable &readable, Writable &writable, Record_Id max_record_id)
Definition
Interpreter.h:48
joedb::Readable_Command_Processor
Definition
Readable_Command_Processor.h:13
joedb::Readable_Interpreter
Definition
Interpreter.h:13
joedb::Readable_Interpreter::readable_command_processor
Readable_Command_Processor readable_command_processor
Definition
Interpreter.h:15
joedb::Readable_Interpreter::Readable_Interpreter
Readable_Interpreter(const Readable &readable)
Definition
Interpreter.h:18
joedb::Readable_Writable_Command_Processor
Definition
Readable_Writable_Command_Processor.h:11
joedb::Readable
Definition
Readable.h:15
joedb::Record_Id
Definition
index_types.h:22
joedb::Writable_Command_Processor
Definition
Writable_Command_Processor.h:12
joedb::Writable_Interpreter
Definition
Interpreter.h:27
joedb::Writable_Interpreter::writable_command_processor
Writable_Command_Processor writable_command_processor
Definition
Interpreter.h:29
joedb::Writable_Interpreter::Writable_Interpreter
Writable_Interpreter(Writable &writable)
Definition
Interpreter.h:32
joedb::Writable
Superclass with all joedb journal event listeners as virtual functions.
Definition
Writable.h:17
joedb
Definition
Blob.h:7
Generated by
1.9.8