|
ARTS
2.4.0(git:4fb77825)
|
This file contains the function get_parameters, which reads command line parameters. More...
#include <cstdio>#include <cstdlib>#include <iostream>#include "arts.h"#include <arts_getopt.h>#include "file.h"#include "parameters.h"Go to the source code of this file.
Functions | |
| void | parse_path_from_environment (String envvar, ArrayOfString &paths) |
| Parse path environment variable. More... | |
| bool | get_parameters (int argc, char **argv) |
| Get the command line parameters. More... | |
Variables | |
| Parameters | parameters |
| Holds the command line parameters. More... | |
This file contains the function get_parameters, which reads command line parameters.
Standard GNU functions are used for this.
Definition in file parameters.cc.
| bool get_parameters | ( | int | argc, |
| char ** | argv | ||
| ) |
Get the command line parameters.
They are stored in the global variable parameters which is a structure of type Parameters. If needed, this variable should be declared like this:
extern const Parameters parameters
| argc | Number of command line parameters |
| argv | Values of command line parameters |
Definition at line 71 of file parameters.cc.
References Parameters::helptext, option::name, no_argument, optional_argument, parameters, required_argument, and Parameters::usage.
Referenced by main().
| void parse_path_from_environment | ( | String | envvar, |
| ArrayOfString & | paths | ||
| ) |
Parse path environment variable.
Parse a colon separated list of paths from the given environment variable into an ArrayOfString.
| [in] | envvar | Name of environment variable. |
| [out] | paths | ArrayOfString of paths. |
Definition at line 53 of file parameters.cc.
References my_basic_string< char >::npos.
| Parameters parameters |
Holds the command line parameters.
Definition at line 41 of file parameters.cc.
Referenced by add_basedir(), data_path_pop(), data_path_push(), find_xml_file(), find_xml_file_existence(), get_parameters(), include_path_pop(), include_path_push(), main(), open_input_file(), option_methods(), option_workspacevariables(), ArtsParser::parse_agenda(), and xsec_continuum_tag().