ARTS  1.0.222
Functions | Variables
parameters.cc File Reference

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

#include "arts.h"
#include <getopt.h>
#include <cstdio>
#include "parameters.h"

Go to the source code of this file.

Functions

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

Variables

Parameters parameters
 Holds the command line parameters. More...
 

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

◆ get_parameters()

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
argcNumber of command line parameters
argvValues of command line parameters
Author
Stefan Buehler
Version
1

Definition at line 36 of file parameters.cc.

Variable Documentation

◆ parameters

Parameters parameters

Holds the command line parameters.

Definition at line 34 of file parameters.cc.