Go to the documentation of this file.
42 ofs <<
"/** \\file auto_wsv_pointers.cc\n"
43 <<
" Defines the smart pointers that are used by\n"
44 <<
" the engine to access workspace variables.\n\n"
46 <<
" This file was generated automatically by make_auto_wsv_pointers_cc.cc.\n"
48 <<
" <b>DO NOT EDIT!</b>\n\n"
52 << __TIME__ <<
" */\n\n";
54 ofs <<
"#include \"arts.h\"\n"
55 <<
"//#include \"matpackI.h\"\n"
56 <<
"#include \"array.h\"\n"
57 <<
"#include \"auto_wsv_groups.h\"\n"
58 <<
"#include \"wsv_aux.h\"\n"
59 <<
"#include \"auto_wsv.h\"\n\n";
61 ofs <<
"/** The array of WSV pointers.\n"
62 <<
" This can be used to access a WSV by its index. */\n"
63 <<
"Array<WsvP*> wsv_pointers;\n\n";
65 ofs <<
"void define_wsv_pointers(Array<WsvP*>& wsv_pointers,\n"
66 <<
" WorkSpace& workspace)\n"
70 for (
Index i=0; i<n_wsv; ++i)
75 <<
" static WsvPointer<"
81 ofs <<
" wsv_pointers.push_back(&p);\n"
88 catch (runtime_error x)
90 cout <<
"Something went wrong. Message text:\n";
91 cout << x.what() <<
'\n';
Defines the enum type that acts as a handle for workspace variables groups.
void define_wsv_data()
Define the lookup data for the workspace variables.
const Array< WsvRecord > wsv_data
This file contains the definition of Array.
Index Group() const
The wsv group to which this variable belongs.
const String & Name() const
Name of this workspace variable.
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 Index
The type to use for all integer numbers and indices.
This class contains all static information for one workspace variable.
This file contains basic functions to handle ASCII and binary (HDF) data files.
Auxiliary header stuff related to workspace variable groups.
The global header file for ARTS.