Joedb 9.5.0
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
15 public:
16 template<class... Arguments> Upgradable_File(Arguments &&... arguments):
17 Parent(arguments...)
18 {
19 this->make_writable();
20 }
21 };
22}
23
24#endif
Upgradable_File(Arguments &&... arguments)
Definition Blob.h:7