Next: Asynchronous data transfers.
Up: Synchronous data transfers
Previous: DAGDA put data macros/functions.
Contents
DAGDA get data macros/functions
The following API functions are defined to obtain a data from DAGDA using
its ID:
- -
dagda_get_scalar(char* ID, void** value,
diet_base_type_t* base_type)
:
The scalar value using the ID "ID" is obtained from DAGDA and the
"value" argument is initialized with a pointer to the data.
The "base_type" pointer content is set to the data base type.
This last parameter is optionnal and can be set to NULL if the user does not
want to get the "base_type" value.
- -
dagda_get_vector(char* ID, void** value,
diet_base_type_t* base_type, size_t* size)
:
The vector using the ID "ID" is obtained from DAGDA. The
"value" argument is initialized with a pointer to the first
vector element. The "base_type" content are initialized with
the base type and size of the vector. These two parameters can be set to
NULL if the user does not take care about it.
- -
dagda_get_matrix(char* ID, void** value,
diet_base_type_t* base_type, size_t* nb_r,
size_t* nb_c, diet_matrix_order_t* order)
:
The matrix using the ID "ID" is obtained from DAGDA. The
"value" argument is initialized with a pointer to the first
matrix element. The "base_type", "nb_r",
"nb_c" and "order" arguments contents are repectively set
to the base type of the matrix, the number of rows, the number of columns
and the matrix order. All of these parameters can be set to NULL if the
user does not take care about it.
- -
dagda_get_string(char* ID, char** value)
:
The string of ID "ID" is obtained from DAGDA and the
value content is set to a pointer on the first string character.
- -
dagda_get_file(char* ID, char** path)
:
The file of ID "ID" is obtained from DAGDA and the
"path" content is set to a pointer on the first path string
character.
Next: Asynchronous data transfers.
Up: Synchronous data transfers
Previous: DAGDA put data macros/functions.
Contents
DIET Team - 2008-07-17