ARTS  2.2.66
groups.cc File Reference

Defines workspace variable groups. More...

#include <map>
#include "arts.h"
#include "array.h"
#include "mystring.h"
#include "wsv_aux.h"
Include dependency graph for groups.cc:

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

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

Referenced by 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 215 of file groups.cc.

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

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

Referenced by MdRecord::MdRecord().

◆ is_valid_keyword_group()

bool is_valid_keyword_group ( const Index  group)

Definition at line 157 of file groups.cc.

References Array< base >::nelem().

Variable Documentation

◆ valid_keyword_groups

ArrayOfIndex valid_keyword_groups

Groups that can be used as keywords

Definition at line 46 of file groups.cc.