Joedb
9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
journal
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
4
#include "
joedb/journal/Buffered_File.h
"
5
6
namespace
joedb
7
{
8
/// @ingroup journal
9
class
Journal_Construction_Lock
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
:
22
Buffered_File
&
file
;
23
const
bool
ignore_errors
;
24
const
int64_t
size
;
25
26
bool
is_for_writable_journal
()
const
{
return
for_writable_journal;}
27
28
explicit
Journal_Construction_Lock
29
(
30
Buffered_File
&
file
,
31
bool
ignore_errors
=
false
32
);
33
34
Journal_Construction_Lock
(
const
Journal_Construction_Lock
&) =
delete
;
35
Journal_Construction_Lock
&
operator=
(
const
Journal_Construction_Lock
&) =
delete
;
36
37
~Journal_Construction_Lock
();
38
};
39
}
40
41
#endif
Buffered_File.h
joedb::Buffered_File
Definition
Buffered_File.h:18
joedb::Journal_Construction_Lock
Definition
Journal_Construction_Lock.h:10
joedb::Journal_Construction_Lock::~Journal_Construction_Lock
~Journal_Construction_Lock()
Definition
Journal_Construction_Lock.cpp:27
joedb::Journal_Construction_Lock::file
Buffered_File & file
Definition
Journal_Construction_Lock.h:22
joedb::Journal_Construction_Lock::Journal_Construction_Lock
Journal_Construction_Lock(const Journal_Construction_Lock &)=delete
joedb::Journal_Construction_Lock::size
const int64_t size
Definition
Journal_Construction_Lock.h:24
joedb::Journal_Construction_Lock::ignore_errors
const bool ignore_errors
Definition
Journal_Construction_Lock.h:23
joedb::Journal_Construction_Lock::is_for_writable_journal
bool is_for_writable_journal() const
Definition
Journal_Construction_Lock.h:26
joedb::Journal_Construction_Lock::operator=
Journal_Construction_Lock & operator=(const Journal_Construction_Lock &)=delete
joedb::Writable_Journal
Definition
Writable_Journal.h:12
joedb
Definition
Blob.h:7
Generated by
1.9.8