|
libdballe 9.13
|
Common functions for commandline tools. More...
#include <dballe/file.h>#include <dballe/fwd.h>#include <list>#include <memory>#include <popt.h>#include <string>#include <vector>#include <wreport/error.h>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... | |
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__((format(printf |
| Print an error that happened when parsing commandline arguments, then add usage informations and exit. | |
| void 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. | |
| 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.