Go to the documentation of this file.
29 #ifndef _ARTS_ARTS_API_H_
30 #define _ARTS_ARTS_API_H_
32 #define DLL_PUBLIC __attribute__((visibility("default")))
338 unsigned long n_args_out,
339 const long *args_out,
340 unsigned long n_args_in,
341 const long *args_in);
415 const Index agenda_verbosity = 0);
498 unsigned long n_args_out,
499 const long *args_out,
500 unsigned long n_args_in,
501 const long *args_in);
655 #endif // _ARTS_ARTS_API_
DLL_PUBLIC void erase_variable(InteractiveWorkspace *workspace, long id, long group_id)
Erase variable from workspace.
const long * g_in_types
Generic input types.
DLL_PUBLIC void agenda_insert_callback(Agenda *a, void(*f)(InteractiveWorkspace *))
Insert callback into agenda.
unsigned long n_g_in
Number of generic input variables.
long revision
Revision number.
DLL_PUBLIC unsigned long get_number_of_variables()
Number of defined WSVs.
DLL_PUBLIC void set_basename(const char *name)
Set the ARTS basename.
DLL_PUBLIC void initialize()
Initalize ARTS runtime.
DLL_PUBLIC const char * get_method_g_out(Index i, Index j)
Get name value of generic output argument.
DLL_PUBLIC const char * get_g_in_nodef()
Get string defining missing default parameter.
DLL_PUBLIC long lookup_workspace_variable(const char *s)
Lookup workspace variable by name.
unsigned long n_g_out
Number of generic output variables.
DLL_PUBLIC const char * get_method_g_in(Index i, Index j)
Get name of generic input argument.
Verbosity verbosity(Workspace &ws) noexcept
DLL_PUBLIC void include_path_pop()
Remove last include path.
DLL_PUBLIC void data_path_push(const char *path)
Add data path.
DLL_PUBLIC Agenda * parse_agenda(const char *filename)
Parse Controlfile.
DLL_PUBLIC MethodStruct get_method(Index i)
Return MethodStruct describing method with index i.
DLL_PUBLIC VariableStruct get_variable(Index i)
Get WSV by index.
DLL_PUBLIC const char * get_group_name(int i)
Get pointer to name of given group.
DLL_PUBLIC void agenda_append(Agenda *dst, const Agenda *src)
Append agendas.
long major
Major version number of ARTS.
DLL_PUBLIC VersionStruct get_version()
Get ARTS Version.
const char * description
Pointer to the c_str of the description of the variable.
DLL_PUBLIC const char * set_variable_value(InteractiveWorkspace *workspace, long id, long group_id, VariableValueStruct value)
Sets the value of a WSV in a given workspace.
long id
The WSMs index in md_data.
DLL_PUBLIC VariableValueStruct get_variable_value(InteractiveWorkspace *workspace, Index id, Index group_id)
Get value WSV in given workspace.
DLL_PUBLIC InteractiveWorkspace * create_workspace(const Index verbosity=1, const Index agenda_verbosity=0)
Create new workspace.
Header files of CovarianceMatrix class.
DLL_PUBLIC const char * execute_workspace_method(InteractiveWorkspace *workspace, long id, unsigned long n_args_out, const long *args_out, unsigned long n_args_in, const long *args_in)
Execute workspace method.
const int * inner_ptr
Additional array data for sparse matrices.
const void * ptr
Data pointer.
DLL_PUBLIC const char * get_error()
Get most recent error.
DLL_PUBLIC void destroy_agenda(Agenda *a)
Destroy Agenda.
Representation of ARTS WSVs.
long nnz
Number of non-zero elements.
DLL_PUBLIC unsigned long get_number_of_groups()
Return number of WSV groups.
DLL_PUBLIC const char * execute_agenda(InteractiveWorkspace *workspace, const Agenda *a)
Execute Agenda.
DLL_PUBLIC CovarianceMatrixBlockStruct get_covariance_matrix_block(CovarianceMatrix *m, long block_index, bool inverse)
Return block of covariance matrix.
const long * in
Input variables.
Representation of ARTS values.
DLL_PUBLIC void * get_variable_data_pointer(InteractiveWorkspace *workspace, Index id)
Get data pointer to the WSV variable.
DLL_PUBLIC void include_path_push(const char *path)
Add include path.
DLL_PUBLIC long add_variable(InteractiveWorkspace *workspace, long group_id, const char *name)
Add variable of given type to workspace.
long dimensions[2]
Block size.
const long * out
Output variables.
const void * ptr
Element pointer.
DLL_PUBLIC const char * get_method_g_in_default(Index i, Index j)
Get default value of generic input argument.
bool initialized
Initialization status.
const int * outer_ptr
Outer pointer for sparse matrices.
const int * outer_ptr
Additional array data for sparse matrices.
DLL_PUBLIC void agenda_add_method(Agenda *a, const Index id, unsigned long n_args_out, const long *args_out, unsigned long n_args_in, const long *args_in)
Add method to agenda.
DLL_PUBLIC unsigned long get_number_of_methods()
Return number of WSMs.
long position[2]
Start indices of block.
const char * name
Method name.
DLL_PUBLIC const char * method_print_doc(long id)
Print method documentation.
const long * g_out_types
Generic output types.
long minor
Minor version number of this ARTS major version.
DLL_PUBLIC Agenda * create_agenda(const char *name)
Create Agenda.
const int * inner_ptr
Inner pointer for sparse matrices.
const char * description
Method description.
DLL_PUBLIC void finalize()
Finalize ARTS runtime.
DLL_PUBLIC void agenda_insert_set(InteractiveWorkspace *ws, Agenda *a, long id, long group_id)
Insert a set method into an agenda.
DLL_PUBLIC void destroy_workspace(InteractiveWorkspace *workspace)
Destroy given workspace.
long dimensions[7]
Dimensions of array data.
long group
The Index value representing the group this variable belongs to.
unsigned long n_in
Number of non-generic input variables.
unsigned long n_out
Number of non-generic output variables.
Representation of workspace methods.
DLL_PUBLIC void data_path_pop()
Remove last data path.
INDEX Index
The type to use for all integer numbers and indices.
const char * name
Pointer to the c_str of the name of the variable.
DLL_PUBLIC void agenda_clear(Agenda *a)
Clear Agenda.
long indices[2]
Quantity indices.
This file contains all declarations of the ARTS C API.
Interactive ARTS workspace.