ARTS  2.3.1285(git:92a29ea9-dirty)
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.

Classes

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

Functions

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.

Author
Stefan Buehler
Date
2000-06-10

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 232 of file groups.cc.

References get_wsv_group_id(), i, 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 186 of file groups.cc.

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 218 of file groups.cc.

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.

Author
Stefan Buehler

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

Parameters
osOutput stream.
wrWorkspace variable record.
Returns
Output stream.

Definition at line 229 of file agenda_record.cc.

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