ARTS  2.3.1285(git:92a29ea9-dirty)
arts.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2012
2  Stefan Buehler <sbuehler@ltu.se>
3  Patrick Eriksson <Patrick.Eriksson@chalmers.se>
4  Oliver Lemke <olemke@core-dump.info>
5 
6  This program is free software; you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by the
8  Free Software Foundation; either version 2, or (at your option) any
9  later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19  USA. */
20 
96 #ifndef arts_h
97 #define arts_h
98 
99 #include <cstddef>
100 #include <cstdlib>
101 #include "debug.h"
102 #include "mystring.h"
103 
104 //----------< First of all, include the configuration header >----------
105 #include "config.h"
106 
107 // C Assert macro:
108 #include <cassert>
109 
110 #ifdef HAVE_NAMESPACES
111 // We need those to support ansi-compliant compilers (gcc-3x)
112 namespace std {}
113 using namespace std;
114 #endif
115 
116 //---------------< Global variable declarations >---------------
117 // See global_data.h
118 
119 //---------------< Global function declarations: >---------------
120 // Documentations are with function definitions.
121 // FIXME: OLE: These should be moved to a separate header file.
122 class ArtsOut;
123 
125 Index get_wsv_id(const String& name);
126 Index get_wsv_id(const char* name);
127 bool is_valid_keyword_group(const Index name);
128 void define_species_data();
129 void define_species_map();
130 
131 void arts_exit(int status = EXIT_FAILURE);
132 void arts_exit_with_error_message(const String& m, ArtsOut& os);
133 
134 //
135 // Physical constants are now in constants.cc
136 //
137 
138 //---------------< Global macro definitions: >---------------
139 
140 #endif // arts_h
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39
Helper macros for debugging.
void define_species_map()
Index get_wsv_id(const String &name)
Get index of WSV.
Definition: workspace.cc:5751
void arts_exit_with_error_message(const String &m, ArtsOut &os)
Print error message and exit.
Definition: arts.cc:64
void define_species_data()
bool is_valid_keyword_group(const Index name)
Definition: groups.cc:178
void define_wsv_group_names()
Define the array of workspace variable group names.
Definition: groups.cc:77
void arts_exit(int status=EXIT_FAILURE)
This is the exit function of ARTS.
Definition: arts.cc:42
This file contains the definition of String, the ARTS string class.