ARTS  2.2.66
parameters.cc File Reference

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include "arts.h"
#include <arts_getopt.h>
#include "parameters.h"
#include "file.h"
Include dependency graph for parameters.cc:

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...
 

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 
)

◆ parse_path_from_environment()

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.

Parameters
[in]envvarName of environment variable.
[out]pathsArrayOfString of paths.
Author
Oliver Lemke

Definition at line 54 of file parameters.cc.

References my_basic_string< charT >::npos.

Referenced by get_parameters().

Variable Documentation

◆ parameters

Parameters parameters

Holds the command line parameters.

Definition at line 41 of file parameters.cc.

Referenced by add_basedir(), find_xml_file(), main(), open_input_file(), option_methods(), option_workspacevariables(), and ArtsParser::parse_agenda().