Joedb 10.0.1
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(std::string_view name) const;
20
21 public:
23
24 void print_help(std::ostream &out) const;
25
26 Connection *build(Arguments &arguments, Buffered_File *file) const;
27 };
28}
29
30#endif
Class for conveniently parsing command-line arguments.
Definition Arguments.h:19
Create an instance of a Connection by parsing command-line arguments.
void print_help(std::ostream &out) const
Connection * build(Arguments &arguments, Buffered_File *file) const
Definition Blob.h:7