-
da_status da_data_label_column(da_datastore store, const char *label, da_int col_idx)#
Label a column.
- Parameters:
store – [inout] main data structure.
label – [in] new label for the column
idx.col_idx – [in] index of the column to label.
- Returns:
da_status. The function returns:
da_status_success - the operation was successful.
da_status_invalid_input - some of the input data was not correct. Use da_handle_print_error_message to get more details.
da_status_invalid_pointer - the store was not correctly initialized.
da_status_internal_error - an unexpected error occurred.
-
da_status da_data_get_col_idx(da_datastore store, const char *label, da_int *col_idx)#
Get the index of the column labeled by the input
label.- Parameters:
store – [in] main data store.
label – [in] name of the column to look for.
col_idx – [out] on output contains the index of the column
label.
- Returns:
da_status. The function returns:
da_status_success - the operation was successful.
da_status_invalid_input - some of the input data was not correct. Use da_handle_print_error_message to get more details.
da_status_invalid_pointer - the store was not correctly initialized.
da_status_internal_error - an unexpected error occurred.
-
da_status da_data_get_col_label(da_datastore store, da_int col_idx, da_int *label_sz, char *label)#
Get the label of a column from its index.
On output the C string
labelwill contain the label of the columnidx.label_szindicates the size of the C stringlabel. If it is smaller than the size of the column label, the function will return da_status_invalid_input andlabel_szwill be set to the minimum size acceptable forcol_idx.- Parameters:
store – [in] main data structure.
col_idx – [in] index of the column to search for.
label_sz – [in] the size of the C string being provided to the function.
label – [out] if successful, contains the label of the column
idxon output.
- Returns:
da_status. The function returns:
da_status_success - the operation was successful.
da_status_invalid_input - some of the input data was not correct. Use da_handle_print_error_message to get more details.
da_status_invalid_pointer - the store was not correctly initialized.