Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Client_Parser.h
Go to the documentation of this file.
1#ifndef joedb_Client_Parser_declared
2#define joedb_Client_Parser_declared
3
7
8namespace joedb
9{
10 /// @ingroup ui
12 {
13 private:
14 File_Parser file_parser;
15 Connection_Parser connection_parser;
16
17 const Open_Mode default_open_mode;
18 const bool default_with_database;
19
20 std::unique_ptr<Client> client;
21
22 public:
23 Client_Parser(bool local, Open_Mode default_open_mode, bool with_database);
24
25 Client &parse(int argc, char **argv);
26 bool has_file() const {return file_parser.get_file() != nullptr;}
27
28 void print_help(std::ostream &out) const;
29 };
30}
31
32#endif
bool has_file() const
void print_help(std::ostream &out) const
Client & parse(int argc, char **argv)
Handle concurrent access to a file with a joedb::Connection.
Definition Client.h:12
Create an instance of a Connection by parsing command-line arguments.
Create an instance of a Buffered_File by parsing command-line arguments.
Definition File_Parser.h:20
Buffered_File * get_file() const
Definition File_Parser.h:56
Open_Mode
Definition Open_Mode.h:8
Definition Blob.h:7