Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
File_Client.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2//
3// This code was automatically generated by the joedb compiler
4// https://www.joedb.org/
5//
6// Path to compiler: /home/rcoulom/repos/joedb/compcmake/gcc_debug/joedbc
7// Version: 10.2.1
8// joedbc compilation time: Sep 15 2025 20:22:33
9// Generation of this file: 2025-09-15 18:23:01 GMT
10//
11/////////////////////////////////////////////////////////////////////////////
12#ifndef settings_File_Client_declared
13#define settings_File_Client_declared
14
15#include "Client.h"
16#include "joedb/journal/File.h"
17
18namespace settings
19{
20 /// Shortcut to directly build a @ref Client from a file name
21 class File_Client: private joedb::File, public Client
22 {
23 public:
24 File_Client(const char *file_name):
25 joedb::File
26 (
27 file_name,
28 joedb::File::lockable
29 ? joedb::Open_Mode::shared_write
30 : joedb::Open_Mode::write_existing_or_create_new
31 ),
32 Client(*this, joedb::Connection::dummy)
33 {
34 }
35
36 File_Client(const std::string &file_name):
37 File_Client(file_name.c_str())
38 {
39 }
40 };
41}
42
43#endif
Handle concurrent access to a joedb::Abstract_File using a joedb::Connection.
Definition Client.h:44
Shortcut to directly build a Client from a file name.
Definition File_Client.h:22
File_Client(const char *file_name)
Definition File_Client.h:24
File_Client(const std::string &file_name)
Definition File_Client.h:36
JOEDB_FILE File
Definition File.h:25
Automatically generated by joedbc.
Definition Client.h:19