ARTS 2.5.0 (git: 9ee3ac6c)
wsv_aux.h File Reference

Auxiliary header stuff related to workspace variable groups. More...

#include "array.h"
#include "arts.h"
#include "exceptions.h"

Go to the source code of this file.


class  WsvRecord
 This class contains all static information for one workspace variable. More...


void get_wsv_group_ids (ArrayOfIndex &ids, String name)
 Returns list of ids of the given group names. More...
bool is_agenda_group_id (const Index group_id)
 Check if group is an agenda group. More...
Index get_wsv_group_id (const String &name)
 Returns the id of the given group. More...
String get_array_groups_as_string (bool basetype_is_group=false, bool return_basetype_only=false)
 Return string list of array types. More...
ostream & operator<< (ostream &os, const WsvRecord &wr)
 Output operator for WsvRecord. More...

Detailed Description

Auxiliary header stuff related to workspace variable groups.

Normally you should not need to edit this file.

Stefan Buehler

Definition in file wsv_aux.h.

Function Documentation

◆ get_array_groups_as_string()

String get_array_groups_as_string ( bool  basetype_is_group = false,
bool  return_basetype_only = false 

Return string list of array types.

Definition at line 236 of file

References get_wsv_group_id(), Array< base >::nelem(), and global_data::wsv_group_names.

Referenced by define_md_data_raw().

◆ get_wsv_group_id()

◆ get_wsv_group_ids()

void get_wsv_group_ids ( ArrayOfIndex ids,
String  name 

Returns list of ids of the given group names.

Definition at line 190 of file

References get_wsv_group_id(), and my_basic_string< charT >::nelem().

Referenced by MdRecord::MdRecord().

◆ is_agenda_group_id()

bool is_agenda_group_id ( const Index  group_id)

Check if group is an agenda group.

Definition at line 222 of file

References get_wsv_group_id().

Referenced by main(), write_method_header(), and write_method_header_documentation().

◆ operator<<()

ostream & operator<< ( ostream &  os,
const WsvRecord wr 

Output operator for WsvRecord.

Stefan Buehler

This has to be here rather than with or, because it uses agenda_data and AgendaMap.

osOutput stream.
wrWorkspace variable record.
Output stream.

Definition at line 229 of file

References global_data::agenda_data, global_data::AgendaMap, ARTS_ASSERT, WsvRecord::Description(), get_wsv_group_id(), WsvRecord::Group(), WsvRecord::Name(), and global_data::wsv_group_names.