Joedb 10.0.1
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 int64_t get_size() const override {return -1;}
15
16 public:
17 template<class... Arguments> Upgradable_File(Arguments &&... arguments):
18 Parent(arguments...)
19 {
20 this->make_writable();
21 }
22 };
23}
24
25#endif
Class for conveniently parsing command-line arguments.
Definition Arguments.h:19
Upgradable_File(Arguments &&... arguments)
Definition Blob.h:7