ARTS 2.5.11 (git: 6827797f)
parameters.cc File Reference

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

◆ 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 36 of file parameters.cc.

References my_basic_string< char >::npos.

Referenced by get_parameters().

Variable Documentation

◆ parameters

Parameters parameters

Holds the command line parameters.

Definition at line 24 of file parameters.cc.

Referenced by add_basedir(), lm_hitran_2017::CommonBlock::Bfittedp::Bfittedp(), lm_hitran_2017::CommonBlock::Bfittedq::Bfittedq(), lm_hitran_2017::CommonBlock::Bfittedr::Bfittedr(), lm_hitran_2017::CommonBlock::DiagnI::DiagnI(), lm_hitran_2017::CommonBlock::DiagnR::DiagnR(), lm_hitran_2017::CommonBlock::DipoRigid::DipoRigid(), lm_hitran_2017::CommonBlock::DipoTcm::DipoTcm(), lm_hitran_2017::CommonBlock::DTGAMAIR::DTGAMAIR(), lm_hitran_2017::CommonBlock::DTGAMCO2::DTGAMCO2(), lm_hitran_2017::CommonBlock::DTGAMH2O::DTGAMH2O(), lm_hitran_2017::CommonBlock::Energy::Energy(), find_xml_file(), find_xml_file_existence(), lm_hitran_2017::CommonBlock::GamSDVT0AIR::GamSDVT0AIR(), lm_hitran_2017::CommonBlock::GamSDVT0CO2::GamSDVT0CO2(), lm_hitran_2017::CommonBlock::GamSDVT0H2O::GamSDVT0H2O(), lm_hitran_2017::CommonBlock::GamVT0AIR::GamVT0AIR(), lm_hitran_2017::CommonBlock::GamVT0CO2::GamVT0CO2(), lm_hitran_2017::CommonBlock::GamVT0H2O::GamVT0H2O(), get_parameters(), lm_hitran_2017::CommonBlock::Jfln::Jfln(), lm_hitran_2017::CommonBlock::Jiln::Jiln(), lm_hitran_2017::CommonBlock::LineSg::LineSg(), main(), open_input_file(), option_methods(), option_workspacevariables(), ArtsParser::parse_agenda(), lm_hitran_2017::CommonBlock::PopTrf::PopTrf(), lm_hitran_2017::CommonBlock::SHIFT0::SHIFT0(), lm_hitran_2017::CommonBlock::UnusedBandParams::UnusedBandParams(), lm_hitran_2017::CommonBlock::Wfittedp::Wfittedp(), lm_hitran_2017::CommonBlock::Wfittedq::Wfittedq(), lm_hitran_2017::CommonBlock::Wfittedr::Wfittedr(), and lm_hitran_2017::CommonBlock::Wmatrix::Wmatrix().