C API: Added a function to set an entire column to a specified (atomic)

value.
This commit is contained in:
Celine Mercier
2018-05-17 15:59:16 +02:00
parent 4aef20add8
commit f0c147c252
2 changed files with 81 additions and 19 deletions

View File

@ -372,6 +372,26 @@ int obi_truncate_column(OBIDMS_column_p column);
int obi_enlarge_column(OBIDMS_column_p column);
/*
* @brief Sets the data in a column to the specified value.
*
* @warning The specified value should be the atomic value effectively stored in the column (i.e. it can not be a character string for example).
*
* @param column A pointer on an OBIDMS column.
* @param start The first line number of the block that should be set.
* @param nb_lines The number of lines that should be set.
* @param value_p A pointer on the value to which the column should be set.
*
* @since May 2018
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
void obi_set_column_to_value(OBIDMS_column_p column,
index_t first_line_nb,
index_t nb_lines,
void* value_p);
/*
* @brief Sets the data in a column to the NA value of the data OBIType.
*