ARTS
2.4.0(git:4fb77825)
|
Definition of method description data. More...
Go to the source code of this file.
Namespaces | |
global_data | |
Macros | |
#define | NAME(x) x |
#define | DESCRIPTION(x) x |
#define | AUTHORS(...) string_array( __VA_ARGS__ ) |
#define | OUT(...) string_array( __VA_ARGS__ ) |
#define | GOUT(...) string_array( __VA_ARGS__ ) |
#define | GOUT_TYPE(...) string_array( __VA_ARGS__ ) |
#define | GOUT_DESC(...) string_array( __VA_ARGS__ ) |
#define | IN(...) string_array( __VA_ARGS__ ) |
#define | GIN(...) string_array( __VA_ARGS__ ) |
#define | GIN_TYPE(...) string_array( __VA_ARGS__ ) |
#define | GIN_DEFAULT(...) string_array( __VA_ARGS__ ) |
#define | GIN_DESC(...) string_array( __VA_ARGS__ ) |
#define | SETMETHOD(x) x |
#define | AGENDAMETHOD(x) x |
#define | USES_TEMPLATES(x) x |
#define | PASSWORKSPACE(x) x |
#define | PASSWSVNAMES(x) x |
Functions | |
template<typename ... T> | |
std::array< String, sizeof...(T)> | string_array (const T &... input) |
template<size_t LEN_OF_NAME, size_t LEN_OF_DESCRIPTION, size_t NUM_OF_AUTHORS, size_t NUM_OF_OUTPUTS, size_t NUM_OF_GOUT_ARGS, size_t NUM_OF_GOUT_TYPES, size_t NUM_OF_GOUT_DESCRIPTIONS, size_t NUM_OF_INPUTS, size_t NUM_OF_GIN_ARGS, size_t NUM_OF_GIN_TYPES, size_t NUM_OF_GIN_DEFAULTS, size_t NUM_OF_GIN_DESCRIPTIONS, typename ... Ts> | |
MdRecord | create_mdrecord (const char(&name)[LEN_OF_NAME], const char(&description)[LEN_OF_DESCRIPTION], const std::array< String, NUM_OF_AUTHORS > &authors, const std::array< String, NUM_OF_OUTPUTS > &output, const std::array< String, NUM_OF_GOUT_ARGS > &gout, const std::array< String, NUM_OF_GOUT_TYPES > &gouttype, const std::array< String, NUM_OF_GOUT_DESCRIPTIONS > &goutdesc, const std::array< String, NUM_OF_INPUTS > &input, const std::array< String, NUM_OF_GIN_ARGS > &gin, const std::array< String, NUM_OF_GIN_TYPES > &gintype, const std::array< String, NUM_OF_GIN_DEFAULTS > &gindefault, const std::array< String, NUM_OF_GIN_DESCRIPTIONS > &gindesc, Ts ... flags) |
void | define_md_data_raw () |
Definition of method description data.
This file contains only the definition of the function define_md_data, which sets the WSV lookup data. You have to change this function each time you add a new method. See methods.h for more documentation.
Definition in file methods.cc.
#define AGENDAMETHOD | ( | x | ) | x |
Definition at line 125 of file methods.cc.
#define AUTHORS | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 104 of file methods.cc.
#define DESCRIPTION | ( | x | ) | x |
Definition at line 103 of file methods.cc.
#define GIN | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 116 of file methods.cc.
#define GIN_DEFAULT | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 120 of file methods.cc.
#define GIN_DESC | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 122 of file methods.cc.
#define GIN_TYPE | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 118 of file methods.cc.
#define GOUT | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 108 of file methods.cc.
#define GOUT_DESC | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 112 of file methods.cc.
#define GOUT_TYPE | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 110 of file methods.cc.
#define IN | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 114 of file methods.cc.
#define NAME | ( | x | ) | x |
Definition at line 102 of file methods.cc.
#define OUT | ( | ... | ) | string_array( __VA_ARGS__ ) |
Definition at line 106 of file methods.cc.
#define PASSWORKSPACE | ( | x | ) | x |
Definition at line 127 of file methods.cc.
#define PASSWSVNAMES | ( | x | ) | x |
Definition at line 128 of file methods.cc.
#define SETMETHOD | ( | x | ) | x |
Definition at line 124 of file methods.cc.
#define USES_TEMPLATES | ( | x | ) | x |
Definition at line 126 of file methods.cc.
MdRecord create_mdrecord | ( | const char(&) | name[LEN_OF_NAME], |
const char(&) | description[LEN_OF_DESCRIPTION], | ||
const std::array< String, NUM_OF_AUTHORS > & | authors, | ||
const std::array< String, NUM_OF_OUTPUTS > & | output, | ||
const std::array< String, NUM_OF_GOUT_ARGS > & | gout, | ||
const std::array< String, NUM_OF_GOUT_TYPES > & | gouttype, | ||
const std::array< String, NUM_OF_GOUT_DESCRIPTIONS > & | goutdesc, | ||
const std::array< String, NUM_OF_INPUTS > & | input, | ||
const std::array< String, NUM_OF_GIN_ARGS > & | gin, | ||
const std::array< String, NUM_OF_GIN_TYPES > & | gintype, | ||
const std::array< String, NUM_OF_GIN_DEFAULTS > & | gindefault, | ||
const std::array< String, NUM_OF_GIN_DESCRIPTIONS > & | gindesc, | ||
Ts ... | flags | ||
) |
Definition at line 62 of file methods.cc.
Referenced by define_md_data_raw().
void define_md_data_raw | ( | ) |
Definition at line 191 of file methods.cc.
References AGENDAMETHOD, AUTHORS, create_mdrecord(), DESCRIPTION, get_array_groups_as_string(), GIN, GIN_DEFAULT, GIN_DESC, GIN_TYPE, GOUT, GOUT_DESC, GOUT_TYPE, IN, global_data::md_data_raw, NAME, NODEF, OUT, PASSWORKSPACE, PASSWSVNAMES, SETMETHOD, USES_TEMPLATES, and global_data::wsv_group_names.
Referenced by ARTS::init(), InteractiveWorkspace::initialize(), and main().
std::array<String, sizeof...(T)> string_array | ( | const T &... | input | ) |
Definition at line 44 of file methods.cc.