Major changes : new cython subclasses to handle columns with multiple
elements per line in a more efficient way + now elements_names are passed as a list + new function to recover only the header of a column
This commit is contained in:
@ -334,31 +334,34 @@ OBIType_t obi_column_get_data_type(OBIDMS_column_p column);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Recovers the data type of an OBIDMS column from the column name.
|
||||
* @brief Recovers the header of an OBIDMS column from the column name.
|
||||
*
|
||||
* @warning The header structure has to be munmapped by the caller.
|
||||
*
|
||||
* @param dms A pointer on an OBIDMS.
|
||||
* @param column_name The name of an OBIDMS column.
|
||||
*
|
||||
* @returns The data type of the column.
|
||||
* @returns A pointer on the mmapped header of the column.
|
||||
* @retval NULL if an error occurred.
|
||||
*
|
||||
* @since July 2015
|
||||
* @since October 2015
|
||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
*/
|
||||
OBIType_t obi_column_get_data_type_from_name(OBIDMS_p dms, const char* column_name);
|
||||
OBIDMS_column_header_p obi_column_get_header_from_name(OBIDMS_p dms, const char* column_name);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Recovers the line count of an OBIDMS column from the column name.
|
||||
* @brief Munmap a mmapped header as returned by obi_column_get_header_from_name().
|
||||
*
|
||||
* @param dms A pointer on an OBIDMS.
|
||||
* @param column_name The name of an OBIDMS column.
|
||||
* @param header A pointer on the mmapped header structure.
|
||||
*
|
||||
* @returns The line count of the column.
|
||||
* @retval 0 if the operation was successfully completed.
|
||||
* @retval -1 if an error occurred.
|
||||
*
|
||||
* @since September 2015
|
||||
* @since October 2015
|
||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
*/
|
||||
size_t obi_column_get_line_count_from_name(OBIDMS_p dms, const char* column_name);
|
||||
int obi_unmap_header(OBIDMS_column_header_p header);
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user