ARTS  2.3.1285(git:92a29ea9-dirty)
groups.cc File Reference

Defines workspace variable groups. More...

#include <map>
#include "array.h"
#include "arts.h"
#include "mystring.h"
#include "wsv_aux.h"

Go to the source code of this file.

Namespaces

 global_data
 

Functions

void define_valid_keyword_groups ()
 
void define_wsv_group_map ()
 
void define_wsv_group_names ()
 Define the array of workspace variable group names. More...
 
bool is_valid_keyword_group (const Index group)
 
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)
 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, bool return_basetype_only)
 Return string list of array types. More...
 

Variables

ArrayOfIndex valid_keyword_groups
 

Detailed Description

Defines workspace variable groups.

If you want to add new workspace variable groups you have to do it in this file. This is used by the program make_wsv_group_h to generate the header file wsv_group.h

Author
Stefan Buehler
Date
2000-08-04

Definition in file groups.cc.

Function Documentation

◆ define_valid_keyword_groups()

void define_valid_keyword_groups ( )

Definition at line 47 of file groups.cc.

References get_wsv_group_id().

Referenced by define_wsv_group_names().

◆ define_wsv_group_map()

void define_wsv_group_map ( )

◆ define_wsv_group_names()

void define_wsv_group_names ( )

Define the array of workspace variable group names.

This defines the global variable wsv_group_names. It is used in two different programs:

  1. In arts.
  2. In make_wsv_group_h.
Author
Stefan Buehler
Date
2000-08-04

Definition at line 77 of file groups.cc.

References define_valid_keyword_groups(), define_wsv_group_map(), and global_data::wsv_group_names.

Referenced by InteractiveWorkspace::initialize(), and main().

◆ get_array_groups_as_string()

String get_array_groups_as_string ( bool  basetype_is_group,
bool  return_basetype_only 
)

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)

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().

◆ is_valid_keyword_group()

bool is_valid_keyword_group ( const Index  group)

Definition at line 178 of file groups.cc.

References i, and Array< base >::nelem().

Variable Documentation

◆ valid_keyword_groups

ArrayOfIndex valid_keyword_groups

Groups that can be used as keywords

Definition at line 45 of file groups.cc.