Go to the documentation of this file.
60 ofs <<
"/*! \\file auto_wsv.h\n"
61 <<
" \\brief Declares the enum type that acts as a\n"
62 <<
" handle for workspace variables. Also declares the\n"
63 <<
" workspace itself.\n\n"
65 <<
" This file was generated automatically by make_auto_wsv_h.cc.\n"
67 <<
" <b>DO NOT EDIT!</b>\n\n"
71 << __TIME__ <<
" */\n\n";
73 ofs <<
"#ifndef auto_wsv_h\n";
74 ofs <<
"#define auto_wsv_h\n\n";
76 ofs <<
"#include \"absorption.h\"\n"
77 <<
"#include \"los.h\"\n\n";
79 ofs <<
"/*! This is only used for a consistency check. You can get the\n"
80 <<
" number of workspace variables from wsv_data.nelem(). */\n"
81 <<
"#define N_WSV " << n_wsv <<
"\n\n";
83 ofs <<
"enum WsvHandle{\n";
84 for (
Index i=0; i<n_wsv-1; ++i)
86 ofs <<
" " <<
wsv_data[i].Name() <<
"_,\n";
88 ofs <<
" " <<
wsv_data[n_wsv-1].Name() <<
"_\n";
93 ofs <<
"/** The declaration of the (great) workspace. */\n";
94 ofs <<
"class WorkSpace {\n"
96 for (
Index i=0; i<n_wsv; ++i)
120 if ( full_stop==s.
npos )
121 full_stop = s.
nelem();
131 if ( full_stop!=s.
nelem() )
132 rest =
String(s,full_stop);
137 (
' ' == rest[0] ||
'\n' == rest[0] )
143 ofs <<
"/** " <<
first;
144 if ( 0==rest.
nelem() )
152 <<
" " << rest <<
'\n'
153 <<
" \\endverbatim */\n";
165 ofs <<
"#endif // auto_wsv_h\n";
170 for (
Index i=0; i<n_wsv; i++ )
172 ofs2 <<
"VARIABLE : " <<
wsv_data[i].Name() <<
"\n"
175 <<
wsv_data[i].Description() <<
"\n\n";
179 catch (runtime_error x)
181 cout <<
"Something went wrong. Message text:\n";
182 cout << x.what() <<
'\n';
Declarations required for the calculation of absorption coefficients.
This file contains the definition of the LOS structure and functions related to this structure.
Defines the enum type that acts as a handle for workspace variables groups.
Numeric first(ConstVectorView x)
Gives the first value of a vector.
void define_wsv_data()
Define the lookup data for the workspace variables.
const Array< WsvRecord > wsv_data
This file contains the definition of Array.
This can be used to make arrays out of anything.
ArrayOfString wsv_group_names
void define_wsv_group_names()
Define the array of workspace variable group names.
void open_output_file(ofstream &file, const String &name)
Open a file for writing.
Index nelem() const
Number of elements.
INDEX Index
The type to use for all integer numbers and indices.
my_basic_string< char > String
The String type for ARTS.
This file contains basic functions to handle ASCII and binary (HDF) data files.
static const Index npos
Define npos:
Auxiliary header stuff related to workspace variable groups.
This file contains the definition of String, the ARTS string class.
The global header file for ARTS.
void replace_all(String &s, const String &what, const String &with)
Replace all occurances of ‘what’ in ‘s’ with ‘with’.