49 NamedArguments& named_args,
72 bool& still_supergeneric,
74 Index& supergeneric_index,
75 NamedArguments& named_args,
84 bool& still_supergeneric,
86 Index& supergeneric_index,
87 NamedArguments& named_args,
96 NamedArguments& named_args,
103 NamedArguments& named_args,
119 Index keyword_index);
123 const Index method_type,
137 const String& default_name,
INDEX Index
The type to use for all integer numbers and indices.
String set_gin_to_default(const MdRecord *mdd, ArrayOfIndex &auto_vars, Array< TokVal > &auto_vars_values, Index keyword_index)
Set generic input to default value.
bool parse_stringarray_from_string(ArrayOfString &res, String &str)
Read an Array of Strings from a String.
void at_end_of_argument(const String &argname)
Check if current position in controlfile is at the end of an argument.
void find_named_arguments(vector< NamedArgument > &named_args)
Find named arguments.
bool parse_numvector_from_string(Vector &res, String &str)
Read a vector of Numerics from a String.
void parse_agenda(Agenda &tasklist)
Parse the Contents of text as ARTS control input.
void parse_tasklist()
Public interface to the main function of the parser.
Index read_name_or_value(String &name, ArrayOfIndex &auto_vars, Array< TokVal > &auto_vars_values, const String &default_name, const MdRecord *mdd, const Index group)
Reads name of a workspace variable or a value.
ArtsParser(Agenda &tasklist, String controlfile, const Verbosity &verbosity)
Constructs a new parser.
All information for one workspace method.
vector< NamedArgument > NamedArguments
void parse_String(String &res)
Reads a String, complete with quotation marks.
void parse_numvector(Vector &res)
Read a vector of Numerics.
void parse_integer(Index &n)
Use a String stream to parse an integer number.
void parse_generic_input(const MdRecord *&mdd, Index &id, String &methodname, ArrayOfIndex &input, ArrayOfIndex &auto_vars, Array< TokVal > &auto_vars_values, bool &first, bool &still_supergeneric, String &supergeneric_args, Index &supergeneric_index, NamedArguments &named_args, bool call_by_name)
Parse the generic input WSVs for current method from the controlfile.
void parse_specific_input(const MdRecord *mdd, ArrayOfIndex &input, ArrayOfIndex &auto_vars, Array< TokVal > &auto_vars_values, bool &first, NamedArguments &named_args, bool call_by_name)
Parse the specific input WSVs for current method from the controlfile.
void tasklist_insert_set_delete(const ArrayOfIndex &auto_vars, const Array< TokVal > &auto_vars_values, const Index method_type, Agenda &tasklist)
Insert Set and Delete methods for automatically allocated output WSVs.
void parse_numeric(Numeric &n)
Use a String stream to parse a floating point number.
void parse_main()
The main function of the parser.
void skip_to_next_argument()
Skips forward to the next argument.
Declarations for agendas.
void eat_whitespace_from_string(String &str, size_t &pos)
Eats whitespace from a String.
void eat_whitespace()
Eats whitespace.
NUMERIC Numeric
The type to use for all floating point numbers.
A smart class to hold the text for parsing.
void read_integer(String &res)
Reads an integer.
void assertain_character(char c)
Make sure that the current character is equal to c and go to the next character.
void parse_intvector(ArrayOfIndex &res)
Read a vector of integers.
void read_name(String &name)
Reads name of method, keyword, or workspace variable.
void parse_method(Index &id, ArrayOfIndex &output, ArrayOfIndex &input, Agenda &tasks, ArrayOfIndex &auto_vars, Array< TokVal > &auto_vars_values, String &include_file, bool no_eot=false)
Parse the Contents of text as ARTS control input.
void parse_generic_output(const MdRecord *&mdd, Index &id, String &methodname, ArrayOfIndex &output, bool &first, bool &still_supergeneric, String &supergeneric_args, Index &supergeneric_index, NamedArguments &named_args, bool call_by_name)
Parse the generic output WSVs for current method from the controlfile.
bool is_whitespace(const char c)
Returns true if this character is considered whitespace.
const Verbosity & verbosity
void parse_matrix(Matrix &res)
Read a Matrix.
void get_argument_index_by_name(Index &arg_index, NamedArguments &named_args, String name)
Return the index of the argument with the given name.
void parse_Stringvector(ArrayOfString &res)
Read a vector of Strings.
void parse_method_args(const MdRecord *&mdd, Index &id, String &methodname, ArrayOfIndex &output, ArrayOfIndex &input, ArrayOfIndex &auto_vars, Array< TokVal > &auto_vars_values)
Parse method's argument list.
void parse_specific_output(const MdRecord *mdd, ArrayOfIndex &output, bool &first, NamedArguments &named_args, bool call_by_name)
Parse the output WSVs for current method from the controlfile.
void read_numeric(String &res)
Reads a floating point number.
Declaration of the class MdRecord.