ARTS 2.5.11 (git: 6827797f)
|
This class contains all static information for one workspace variable. More...
#include <wsv_aux.h>
Public Member Functions | |
WsvRecord () | |
Default constructor. | |
WsvRecord (const char *name, const char *description, const String &group, const TokVal &val) | |
Initializing constructor. | |
WsvRecord (const char *name, const char *description, const Index group, const TokVal &val) | |
Initializing constructor. | |
WsvRecord (const char *name, const char *description, const String &group) | |
Initializing constructor. | |
WsvRecord (const char *name, const char *description, const Index group) | |
Initializing constructor. | |
const String & | Name () const |
Name of this workspace variable. | |
const String & | Description () const |
A text describing this workspace variable. | |
Index | Group () const |
The wsv group to which this variable belongs. | |
bool | has_defaults () const |
std::shared_ptr< void > | get_copy () const |
const TokVal & | default_value () const |
void | update_default_value (ArtsType auto &&v) |
Private Attributes | |
String | mname |
String | mdescription |
Index | mgroup {-1} |
TokVal | defval |
This class contains all static information for one workspace variable.
The program make_wsv_h.cc uses these records to generate the file wsv.h, which contains both the declaration of the wsv handles and the declaration of the workspace itself.
WsvRecord::WsvRecord | ( | ) |
Default constructor.
Definition at line 12 of file wsv_aux.cc.
WsvRecord::WsvRecord | ( | const char * | name, |
const char * | description, | ||
const String & | group, | ||
const TokVal & | val | ||
) |
Initializing constructor.
This is used by Workspace::define_wsv_data() to set the information for each workspace variable.
Definition at line 19 of file wsv_aux.cc.
References get_wsv_group_id(), mgroup, and mname.
WsvRecord::WsvRecord | ( | const char * | name, |
const char * | description, | ||
const Index | group, | ||
const TokVal & | val | ||
) |
Initializing constructor.
This is used by the parser to create automatically allocated variables
Definition at line 37 of file wsv_aux.cc.
WsvRecord::WsvRecord | ( | const char * | name, |
const char * | description, | ||
const String & | group | ||
) |
Initializing constructor.
This is used by Workspace::define_wsv_data() to set the information for each workspace variable.
Definition at line 49 of file wsv_aux.cc.
References get_wsv_group_id(), mgroup, and mname.
WsvRecord::WsvRecord | ( | const char * | name, |
const char * | description, | ||
const Index | group | ||
) |
Initializing constructor.
This is used by the parser to create automatically allocated variables
Definition at line 64 of file wsv_aux.cc.
|
inline |
|
inline |
A text describing this workspace variable.
Definition at line 78 of file wsv_aux.h.
References mdescription.
Referenced by operator<<().
std::shared_ptr< void > WsvRecord::get_copy | ( | ) | const |
Definition at line 73 of file wsv_aux.cc.
References TokVal::copy_value(), defval, and has_defaults().
|
inline |
The wsv group to which this variable belongs.
Definition at line 81 of file wsv_aux.h.
References mgroup.
Referenced by operator<<().
bool WsvRecord::has_defaults | ( | ) | const |
Definition at line 69 of file wsv_aux.cc.
References defval, and TokVal::holdsAny().
Referenced by get_copy(), and operator<<().
|
inline |
Name of this workspace variable.
Definition at line 75 of file wsv_aux.h.
References mname.
Referenced by Workspace::add_wsv(), and operator<<().
|
inline |
|
private |
Definition at line 97 of file wsv_aux.h.
Referenced by default_value(), get_copy(), has_defaults(), and update_default_value().
|
private |
Definition at line 93 of file wsv_aux.h.
Referenced by Description().
|
private |
Definition at line 95 of file wsv_aux.h.
Referenced by Group(), and WsvRecord().
|
private |
Definition at line 91 of file wsv_aux.h.
Referenced by Name(), and WsvRecord().