Joedb 10.4.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
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
7namespace 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
Class for conveniently parsing command-line arguments.
Definition Arguments.h:16
Upgradable_File(Arguments &&... arguments)