#include <getopt.h>
#include <cstring>
#include <cstdlib>
#include "executor.h"
#include "version.h"
#include "debug.h"
#include "invalidargumentexception.h"
#include "stringdefs.h"

Go to the source code of this file.
Classes | |
| struct | descriptions |
Namespaces | |
| namespace | std |
| STL namespace. | |
Enumerations | |
| enum | short_opts { opt_iqstream = '1', opt_ixstream = '2', opt_oestream = '3', opt_odstream = '4', opt_query_arg = 'q', opt_xml_arg = 'x', opt_eout_arg = 'e', opt_dout_arg = 'o', opt_debug = 'd', opt_streamdebug = 's', opt_streamnodebug = 'b', opt_fragmentxq = 'f', opt_version = 'v', opt_about = 'a', opt_help = 'h' } |
Functions | |
| void | printFragmentXQ () |
| Prints supported XQuery fragment (XQ). | |
| void | printVersionNumber () |
| Prints current version number and compile flags. | |
| void | printAbout () |
| Prints about (license and author) informations. | |
| void | invalidCall (const char *exec_name) |
| Prints all available application call parameters. | |
| ISTREAM_TYPE | getInputStreamType (const char *arg) |
| Returns the input stream type from a string (application call parameter). | |
| OSTREAM_TYPE | getOutputStreamType (const char *arg) |
| Returns the output stream type from a string (application call parameter). | |
| void | executeOnExit () |
| Method, which is always invoked/executed on exit. | |
| int | main (int argc, char **argv) |
| MAIN. | |
Variables | |
| Executor * | exec = NULL |
| static struct option | long_options [] |
| int | val |
| const char * | desc |
| options_descriptions [] | |
ENTRY POINT OF THIS APPLICATION.
Definition in file main.cpp.
| enum short_opts |
| void executeOnExit | ( | ) |
| ISTREAM_TYPE getInputStreamType | ( | const char * | arg | ) |
Returns the input stream type from a string (application call parameter).
Returns the input stream type from a string (application call parameter).
| [in] | arg | Pointer to a char object (application call parameter), which should be checked for matching. |
| ISTREAM_TYPE. |
Definition at line 387 of file main.cpp.
Referenced by main().
| OSTREAM_TYPE getOutputStreamType | ( | const char * | arg | ) |
Returns the output stream type from a string (application call parameter).
Returns the output stream type from a string (application call parameter).
| [in] | arg | Pointer to a char object (application call parameter), which should be checked for matching. |
| OSTREAM_TYPE. |
Definition at line 405 of file main.cpp.
Referenced by main().
| void invalidCall | ( | const char * | exec_name | ) |
Prints all available application call parameters.
Prints all available application call parameters, if application was called with none or wrong parameters.
| [in] | exec_name | Name of the application. |
| void |
Definition at line 294 of file main.cpp.
References desc.
Referenced by main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
MAIN.
MAIN.
| [in] | argc | Number of entered application call parameters. |
| [in] | argv | All entered application call parameters. |
| int | EXIT_FAILURE or 1 in case of an error, EXIT_SUCCESS or 0 if application terminated with success. |
Definition at line 436 of file main.cpp.
References CmdLine::checkIntegrity(), executeOnExit(), Exception::getDebugMsg(), getInputStreamType(), getOutputStreamType(), invalidCall(), printAbout(), printFragmentXQ(), printVersionNumber(), and Executor::start().
| void printAbout | ( | ) |
Prints about (license and author) informations.
Prints about (license and author) informations.
| void |
Definition at line 274 of file main.cpp.
References LICENSE_TXT.
Referenced by main().
| void printFragmentXQ | ( | ) |
Prints supported XQuery fragment (XQ).
Prints supported XQuery fragment (XQ).
| void |
Definition at line 222 of file main.cpp.
References FRAGMENT_TXT.
Referenced by main().
| void printVersionNumber | ( | ) |
Prints current version number and compile flags.
Prints current version number and compile flags.
| void |
Definition at line 231 of file main.cpp.
References VERSION_NUMBER.
Referenced by main().
| const char * desc |
struct option long_options[] [static] |
Initial value:
{
{"iqstream", required_argument, 0, opt_iqstream},
{"ixstream", required_argument, 0, opt_ixstream},
{"oestream", required_argument, 0, opt_oestream},
{"odstream", required_argument, 0, opt_odstream},
{"query", required_argument, 0, opt_query_arg},
{"xml", required_argument, 0, opt_xml_arg},
{"eout", required_argument, 0, opt_eout_arg},
{"dout", required_argument, 0, opt_dout_arg},
{"debug", no_argument, 0, opt_debug},
{"streamdebug", no_argument, 0, opt_streamdebug},
{"streamnodebug", no_argument, 0, opt_streamnodebug},
{"fragmentxq", no_argument, 0, opt_fragmentxq},
{"version", no_argument, 0, opt_version},
{"about", no_argument, 0, opt_about},
{"help", no_argument, 0, opt_help},
{0, 0, 0, 0}
}
1.5.9