parameters.cc File Reference

This file contains the function get_parameters, which reads command line parameters. More...

#include <iostream>
#include <getopt.h>
#include <cstdlib>
#include "arts.h"
#include "parameters.h"

Include dependency graph for parameters.cc:

Go to the source code of this file.

Functions

bool get_parameters (int argc, char **argv)
 Get the command line parameters.

Variables

Parameters parameters
 Holds the command line parameters.


Detailed Description

This file contains the function get_parameters, which reads command line parameters.

Standard GNU functions are used for this.

Author:
Stefan Buehler
Date:
2001-07-24

Definition in file parameters.cc.


Function Documentation

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

Returns:
false=ok, true=error
Parameters:
argc Number of command line parameters
argv Values of command line parameters
Author:
Stefan Buehler
Version:
1

Definition at line 37 of file parameters.cc.

References arts_exit(), Parameters::basename, Parameters::controlfiles, Parameters::describe, Parameters::groups, Parameters::help, Parameters::helptext, Parameters::includepath, Parameters::input, Parameters::methods, my_basic_string< charT >::npos, Parameters::numthreads, Parameters::plain, Parameters::reporting, Parameters::usage, Parameters::version, and Parameters::workspacevariables.

Referenced by main().


Variable Documentation

Holds the command line parameters.

Definition at line 35 of file parameters.cc.

Referenced by find_file(), main(), option_methods(), option_workspacevariables(), and ArtsParser::parse_agenda().


Generated on Mon Mar 23 14:06:49 2009 for ARTS by  doxygen 1.5.6