Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Dummy_Connection_Builder.h
Go to the documentation of this file.
1#ifndef joedb_Dummy_Connection_Builder_declared
2#define joedb_Dummy_Connection_Builder_declared
3
6
7namespace joedb
8{
9 /// @ingroup ui
11 {
12 public:
13 const char *get_name() const override
14 {
15 return "dummy";
16 }
17
18 Connection *build(Arguments &arguments, Abstract_File *file) override
19 {
20 return &Connection::dummy;
21 }
22 };
23}
24
25#endif
Class for conveniently parsing command-line arguments.
Definition Arguments.h:19
static Connection dummy
Since this class has no internal state, this global variable can be used instead of creating an insta...
Definition Connection.h:107
Connection * build(Arguments &arguments, Abstract_File *file) override
const char * get_name() const override