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