Joedb 10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
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
8
9#include <fstream>
10
11namespace joedb
12{
13 /// @ingroup journal
15 {
16 protected:
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):
31 {
32 }
33
34 Readonly_Interpreted_File(const char *file_name):
35 Readonly_Interpreted_File(std::ifstream(file_name))
36 {
37 }
38
40 };
41}
42
43#endif
Definition Blob.h:7