libdballe
5.18
|
Common functions for commandline tools. More...
#include <wreport/error.h>
#include <dballe/core/rawmsg.h>
#include <popt.h>
#include <list>
#include <string>
Go to the source code of this file.
Data Structures | |
struct | dballe::cmdline::op_dispatch_table |
struct | dballe::cmdline::tool_desc |
struct | dballe::cmdline::program_info |
struct | dballe::cmdline::error_cmdline |
Report an error with command line options. More... | |
Defines | |
#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. | |
Encoding | dballe::cmdline::dba_cmdline_stringToMsgType (const char *type) |
Return the ::dba_encoding that corresponds to the name in the string. | |
int | dballe::cmdline::dba_cmdline_dispatch_main (const struct program_info *pinfo, const struct tool_desc *desc, int argc, const char *argv[]) |
Process commandline arguments and perform the action requested. | |
unsigned | dballe::cmdline::dba_cmdline_get_query (poptContext optCon, Record &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.