ARTS  2.2.66
arts.cc File Reference

This file contains global functions. More...

#include <cstdlib>
#include <stdexcept>
#include "arts.h"
#include "file.h"
#include "messages.h"
Include dependency graph for arts.cc:

Go to the source code of this file.

Functions

void arts_exit (int status)
 This is the exit function of ARTS. More...
 
void arts_exit_with_error_message (const String &m, ArtsOut &out)
 Print error message and exit. More...
 

Detailed Description

This file contains global functions.

Author
Oliver Lemke
Date
2003-05-07

Definition in file arts.cc.

Function Documentation

◆ arts_exit()

void arts_exit ( int  status)

This is the exit function of ARTS.

Whenever arts has to be terminated at some point, call this function.

You can call without any parameters, since the exit status then defaults to EXIT_FAILURE.

Parameters
statusExit code. EXIT_FAILURE if omitted.

Definition at line 42 of file arts.cc.

References add_basedir(), cleanup_output_file(), out_basename, and report_file.

Referenced by arts_exit_with_error_message(), Exit(), get_parameters(), interp_poly(), main(), operator<<(), AgRecord::operator=(), MdRecord::operator=(), option_describe(), option_input(), option_methods(), option_workspacevariables(), polite_goodby(), set_reporting_level(), and VectorInsertGridPoints().

◆ arts_exit_with_error_message()

void arts_exit_with_error_message ( const String m,
ArtsOut out 
)

Print error message and exit.

This function is intended for use in catch blocks.

Parameters
mError message.
mArtsOut stream to use.
Author
Stefan Buehler
Date
2008-05-09

Definition at line 64 of file arts.cc.

References arts_exit().

Referenced by Arts(), Arts2(), and main().