|
libdballe
7.21
|
Common functions for commandline tools. More...
#include <wreport/error.h>#include <dballe/file.h>#include <popt.h>#include <memory>#include <vector>#include <list>#include <string>Go to the source code of this file.
Classes | |
| struct | dballe::cmdline::Subcommand |
| struct | dballe::cmdline::Command |
| struct | dballe::cmdline::error_cmdline |
| Report an error with command line options. More... | |
Namespaces | |
| dballe | |
| Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it | |
Macros | |
| #define | ODT_END { NULL, NULL, NULL, NULL, NULL, NULL } |
Functions | |
| void | dballe::cmdline::dba_cmdline_print_dba_error () |
| Print informations about the last error to stderr. | |
| void | dballe::cmdline::dba_cmdline_error (poptContext optCon, const char *fmt,...) __attribute__((noreturn)) |
| Print an error that happened when parsing commandline arguments, then add usage informations and exit. | |
| File::Encoding | dballe::cmdline::string_to_encoding (const char *type) |
| Return the File::Encoding that corresponds to the name in the string. | |
| unsigned | dballe::cmdline::dba_cmdline_get_query (poptContext optCon, Query &query) |
| Get a DB-ALLe query from commandline parameters in the form key=value. More... | |
| void | dballe::cmdline::list_templates () |
| List available output templates. | |
| std::list< std::string > | dballe::cmdline::get_filenames (poptContext optCon) |
| Read all the command line arguments and return them as a list. | |
Common functions for commandline tools.
| unsigned dballe::cmdline::dba_cmdline_get_query | ( | poptContext | optCon, |
| Query & | query | ||
| ) |
Get a DB-ALLe query from commandline parameters in the form key=value.
Referenced by dballe::cmdline::error_cmdline::error_cmdline().
1.8.13