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