Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Journal_Construction_Lock.h
Go to the documentation of this file.
1#ifndef joedb_Journal_Construction_Lock_declared
2#define joedb_Journal_Construction_Lock_declared
3
5
6namespace joedb
7{
8 /// @ingroup journal
10 {
11 friend class Writable_Journal;
12
13 private:
14 bool for_writable_journal = false;
15 Journal_Construction_Lock &set_for_writable_journal()
16 {
17 for_writable_journal = true;
18 return *this;
19 }
20
21 public:
23 const bool ignore_errors;
24 const int64_t size;
25
26 bool is_for_writable_journal() const {return for_writable_journal;}
27
29 (
31 bool ignore_errors = false
32 );
33
36
38 };
39}
40
41#endif
Journal_Construction_Lock(const Journal_Construction_Lock &)=delete
Journal_Construction_Lock & operator=(const Journal_Construction_Lock &)=delete
Definition Blob.h:7