Joedb
10.0.1
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/File_View.h
"
6
#include "
joedb/journal/Writable_Journal.h
"
7
#include "
joedb/interpreted/Database.h
"
8
9
#include <fstream>
10
11
namespace
joedb
12
{
13
/// @ingroup journal
14
class
Readonly_Interpreted_File
:
public
Memory_File
15
{
16
protected
:
17
Database
db
;
18
File_View
file_view
;
19
Writable_Journal
journal
;
20
21
Readonly_Interpreted_File
(std::istream &stream,
bool
readonly);
22
23
public
:
24
Readonly_Interpreted_File
(std::istream &stream):
25
Readonly_Interpreted_File
(stream, true)
26
{
27
}
28
29
Readonly_Interpreted_File
(std::istream &&stream):
30
Readonly_Interpreted_File
(stream)
31
{
32
}
33
34
Readonly_Interpreted_File
(
const
char
*file_name):
35
Readonly_Interpreted_File
(std::ifstream(file_name))
36
{
37
}
38
39
~Readonly_Interpreted_File
();
40
};
41
}
42
43
#endif
File_View.h
Memory_File.h
Writable_Journal.h
joedb::Database
Definition
Database.h:10
joedb::File_View
Definition
File_View.h:10
joedb::Memory_File
Definition
Memory_File.h:12
joedb::Readonly_Interpreted_File
Definition
Readonly_Interpreted_File.h:15
joedb::Readonly_Interpreted_File::Readonly_Interpreted_File
Readonly_Interpreted_File(std::istream &&stream)
Definition
Readonly_Interpreted_File.h:29
joedb::Readonly_Interpreted_File::Readonly_Interpreted_File
Readonly_Interpreted_File(const char *file_name)
Definition
Readonly_Interpreted_File.h:34
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:24
joedb::Readonly_Interpreted_File::journal
Writable_Journal journal
Definition
Readonly_Interpreted_File.h:19
joedb::Readonly_Interpreted_File::db
Database db
Definition
Readonly_Interpreted_File.h:17
joedb::Readonly_Interpreted_File::file_view
File_View file_view
Definition
Readonly_Interpreted_File.h:18
joedb::Writable_Journal
Definition
Writable_Journal.h:12
joedb
Definition
Blob.h:7
Database.h
Generated by
1.9.8