Joedb
9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
journal
Readonly_Interpreted_File.h
Go to the documentation of this file.
1
#ifndef joedb_Readonly_Interpreted_File_declared
2
#define joedb_Readonly_Interpreted_File_declared
3
4
#include "
joedb/journal/Memory_File.h
"
5
#include "
joedb/journal/Writable_Journal.h
"
6
#include "
joedb/interpreted/Database.h
"
7
8
#include <fstream>
9
10
namespace
joedb
11
{
12
/// @ingroup journal
13
class
Readonly_Interpreted_File
:
public
Memory_File
14
{
15
protected
:
16
Writable_Journal
journal
;
17
Database
db
;
18
19
Readonly_Interpreted_File
(std::istream &stream,
bool
readonly);
20
21
public
:
22
Readonly_Interpreted_File
(std::istream &stream):
23
Readonly_Interpreted_File
(stream,
true
)
24
{
25
}
26
27
Readonly_Interpreted_File
(std::istream &&stream):
28
Readonly_Interpreted_File
(stream)
29
{
30
}
31
32
Readonly_Interpreted_File
(
const
char
*
file_name
):
33
Readonly_Interpreted_File
(std::
ifstream
(
file_name
))
34
{
35
}
36
37
~Readonly_Interpreted_File
();
38
};
39
}
40
41
#endif
Memory_File.h
Writable_Journal.h
joedb::Buffered_File::read
T read()
Definition
Buffered_File.h:156
joedb::Database
Definition
Database.h:10
joedb::Memory_File
Definition
Memory_File.h:12
joedb::Readonly_Interpreted_File
Definition
Readonly_Interpreted_File.h:14
joedb::Readonly_Interpreted_File::Readonly_Interpreted_File
Readonly_Interpreted_File(std::istream &&stream)
Definition
Readonly_Interpreted_File.h:27
joedb::Readonly_Interpreted_File::Readonly_Interpreted_File
Readonly_Interpreted_File(const char *file_name)
Definition
Readonly_Interpreted_File.h:32
joedb::Readonly_Interpreted_File::~Readonly_Interpreted_File
~Readonly_Interpreted_File()
joedb::Readonly_Interpreted_File::Readonly_Interpreted_File
Readonly_Interpreted_File(std::istream &stream)
Definition
Readonly_Interpreted_File.h:22
joedb::Readonly_Interpreted_File::journal
Writable_Journal journal
Definition
Readonly_Interpreted_File.h:16
joedb::Readonly_Interpreted_File::db
Database db
Definition
Readonly_Interpreted_File.h:17
joedb::Writable_Journal
Definition
Writable_Journal.h:13
joedb
Definition
Blob.h:7
Database.h
Generated by
1.9.8