Joedb 10.3.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
6
7#include <vector>
8#include <memory>
9#include <iosfwd>
10
11namespace joedb
12{
13 /// Create an instance of a @ref Connection by parsing command-line arguments
14 /// @ingroup ui
16 {
17 private:
18 std::vector<std::unique_ptr<Connection_Builder>> builders;
19
20 Connection_Builder &get_builder(std::string_view name) const;
21
22 public:
24
25 void print_help(std::ostream &out) const;
26
28 (
29 Logger &logger,
30 Arguments &arguments,
31 Abstract_File *file
32 ) const;
33 };
34}
35
36#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(Logger &logger, Arguments &arguments, Abstract_File *file) const