Joedb
9.6.2
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
concurrency
Local_Connector.h
Go to the documentation of this file.
1
#ifndef joedb_Local_Connector_declared
2
#define joedb_Local_Connector_declared
3
4
#include "
joedb/concurrency/Local_Channel.h
"
5
#include "
joedb/concurrency/Connector.h
"
6
7
namespace
joedb
8
{
9
/// @ingroup concurrency
10
class
Local_Connector
:
public
Connector
11
{
12
private
:
13
const
std::string endpoint_path;
14
15
public
:
16
Local_Connector
(std::string endpoint_path):
17
endpoint_path(std::move(endpoint_path))
18
{
19
}
20
21
Local_Connector
(std::string_view endpoint_path):
22
endpoint_path(endpoint_path)
23
{
24
}
25
26
Local_Connector
(
const
char
*endpoint_path):
27
Local_Connector
(std::string_view(endpoint_path))
28
{
29
}
30
31
std::unique_ptr<Channel>
new_channel
()
const override
32
{
33
return
std::make_unique<Local_Channel>(endpoint_path);
34
}
35
};
36
}
37
38
#endif
Local_Channel.h
joedb::Connector
Used by Robust_Connection to reconnect after an error.
Definition
Connector.h:14
joedb::Local_Connector
Definition
Local_Connector.h:11
joedb::Local_Connector::Local_Connector
Local_Connector(std::string endpoint_path)
Definition
Local_Connector.h:16
joedb::Local_Connector::new_channel
std::unique_ptr< Channel > new_channel() const override
Definition
Local_Connector.h:31
joedb::Local_Connector::Local_Connector
Local_Connector(const char *endpoint_path)
Definition
Local_Connector.h:26
joedb::Local_Connector::Local_Connector
Local_Connector(std::string_view endpoint_path)
Definition
Local_Connector.h:21
Connector.h
joedb
Definition
Blob.h:7
Generated by
1.9.8