Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Connection_Parser.h
Go to the documentation of this file.
1#ifndef joedb_Connection_Parser_declared
2#define joedb_Connection_Parser_declared
3
5
6#include <vector>
7#include <memory>
8#include <iosfwd>
9
10namespace joedb
11{
12 /// Create an instance of a @ref Connection by parsing command-line arguments
13 /// @ingroup ui
15 {
16 private:
17 std::vector<std::unique_ptr<Connection_Builder>> builders;
18
19 Connection_Builder &get_builder(const char *name) const;
20
21 static Connection &build
22 (
23 Connection_Builder &builder,
24 int argc,
25 const char * const * argv,
26 Buffered_File *file
27 );
28
29 public:
31
32 void print_help(std::ostream &out) const;
33
34 Connection &build
35 (
36 int argc,
37 const char * const * argv,
38 Buffered_File *file
39 ) const;
40 };
41}
42
43#endif
Create an instance of a Connection by parsing command-line arguments.
void print_help(std::ostream &out) const
Definition Blob.h:7