Joedb
10.4.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
journal
Upgradable_File.h
Go to the documentation of this file.
1
#ifndef joedb_Upgradable_File_declared
2
#define joedb_Upgradable_File_declared
3
4
#include <stddef.h>
5
#include <stdint.h>
6
7
namespace
joedb
8
{
9
/// @ingroup journal
10
template
<
typename
Parent>
class
Upgradable_File
:
public
Parent
11
{
12
private
:
13
void
pwrite(
const
char
*data,
size_t
size, int64_t offset)
override
{}
14
void
exclusive_lock(int64_t start, int64_t size)
override
{}
15
int64_t get_size()
const override
{
return
-1;}
16
17
public
:
18
template
<
class
...
Arguments
>
Upgradable_File
(
Arguments
&&... arguments):
19
Parent(arguments...)
20
{
21
this->make_writable();
22
}
23
};
24
}
25
26
#endif
joedb::Arguments
Class for conveniently parsing command-line arguments.
Definition
Arguments.h:16
joedb::Upgradable_File
Definition
Upgradable_File.h:11
joedb::Upgradable_File::Upgradable_File
Upgradable_File(Arguments &&... arguments)
Definition
Upgradable_File.h:18
joedb
Definition
Server.cpp:10
Generated by
1.9.8