17 static int tutorial_interpreter(
Arguments &arguments)
20 const auto file_name = arguments.get_next(
"file.joedb");
22 if (arguments.missing())
24 arguments.print_help(std::cerr);
28 tutorial::File_Client client(file_name.c_str());
30 client.transaction([](tutorial::Writable_Database &
db){
31 tutorial::Readable readable(
db);
32 tutorial::Multiplexer multiplexer(
db);
38 db.get_journal().get_file()
50 interpreter.add_processor(blob_reader_processor);
51 interpreter.add_processor(data_manipulation_processor);
52 interpreter.add_processor(writable_processor);
54 interpreter.main_loop(std::cin, std::cout);
62int main(
int argc,
char **argv)
Class for conveniently parsing command-line arguments.
static const Record_Id null
int main_wrapper(int(*main)(Arguments &), int argc, char **argv)
Process command-line arguments and catch exceptions from main.