fixed bugs and typos in the obidms and obidmscolumn source and header

files
This commit is contained in:
Celine Mercier
2015-06-17 16:51:16 +02:00
parent 9f9c20aa4a
commit ed662077b3
4 changed files with 342 additions and 316 deletions

View File

@ -18,10 +18,10 @@
#include <stdbool.h>
#include <time.h>
#include <obidms.h>
#include <obitypes.h>
#include <obierrno.h>
#include <obilittlebigman.h>
#include "obidms.h"
#include "obitypes.h"
#include "obierrno.h"
#include "obilittlebigman.h"
#define OBIDMS_MAX_COLNAME (128) /**< The maximum length of an OBIDMS column name
@ -43,7 +43,7 @@ typedef struct OBIDMS_column_header {
*/
int header_size; /**< size of the header in bytes */
size_t line_count; /**< number of lines of data */
size_t line_used; /**< number of lines of data used*/
size_t lines_used; /**< number of lines of data used*/
OBIType_t data_type; /**< type of the data */
time_t creation_date; /**< date of creation of the file */
obiversion_t version; /**< version of the OBIColumn */
@ -89,8 +89,8 @@ typedef struct OBIDMS_column {
/**
* @brief Returns the header size in bytes of a column on this platform.
*
* Header size is defined as a multiple of the memory page size.
* Up to now the header size is defined as one time the page size
* The header size is defined as a multiple of the memory page size.
* Up to now the header size is defined as one time the page size.
*
* @return a `size_t` value corresponding to the header size in bytes
*
@ -104,29 +104,29 @@ size_t obi_get_platform_header_size();
* @brief Creates a column.
*
* @param dms a pointer as returned by obi_create_dms() or obi_open_dms()
* @param name the name of the new column
* @param column_name the name of the new column
* @param type the OBIType code used to create the column
* @param nbelements the number of elements to be stored
* @param nb_elements the number of elements to be stored
*
* @since May 2015
* @author Eric Coissac (eric.coissac@metabarcoding.org)
*/
OBIDMS_column_p obi_create_column(OBIDMS_p dms,
char* name,
char* column_name,
OBIType_t type,
size_t nbelements);
size_t nb_elements);
/**
* @brief Returns the latest column version in the `dms` database
*
* @param dms a pointer as returned by obi_create_dms() or obi_open_dms()
* @param name the name of the column
* @param column_name the name of the column
*
* @return the bigger version number used for this column
* @return -1 if the column does not exist
*/
obiversion_t obi_latest_version(OBIDMS_p dms,char *name);
obiversion_t obi_get_latest_version_number(OBIDMS_p dms, char *column_name);
#endif /* OBIDMSCOLUMN_H_ */