Joedb 10.3.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
iostream.h
Go to the documentation of this file.
1#ifndef joedb_iostream_declared
2#define joedb_iostream_declared
3
5
6#include <iostream>
7
8namespace joedb
9{
10 /// @ingroup journal
11 class iostream: private joedb::filebuf, public std::iostream
12 {
13 public:
15 filebuf(file),
16 std::iostream(static_cast<std::streambuf *>(this))
17 {
18 }
19 };
20
22 {
23 public:
26 iostream(*static_cast<joedb::Abstract_File *>(this))
27 {
28 }
29 };
30}
31
32#endif
https://en.cppreference.com/w/cpp/io/basic_streambuf.html
Definition filebuf.h:17
iostream(joedb::Abstract_File &file)
Definition iostream.h:14
Open_Mode
Definition Open_Mode.h:8
@ create_new
fails if already exists, locks the file for writing