/* omimTitle.h was originally generated by the autoSql program, which also 
 * generated omimTitle.c and omimTitle.sql.  This header links the database and
 * the RAM representation of objects. */

/* Copyright (C) 2005 The Regents of the University of California 
 * See README in this or parent directory for licensing information. */

#ifndef OMIMTITLE_H
#define OMIMTITLE_H

#define OMIMTITLE_NUM_COLS 4

struct omimTitle
/* omim long names */
    {
    struct omimTitle *next;  /* Next in singly linked list. */
    int omimId;	/* OMIM ID */
    char type[2];	/* Type (*, ^ or #) */
    char *geneSymbol;	/* Gene */
    char *title;	/* title */
    };

void omimTitleStaticLoad(char **row, struct omimTitle *ret);
/* Load a row from omimTitle table into ret.  The contents of ret will
 * be replaced at the next call to this function. */

struct omimTitle *omimTitleLoad(char **row);
/* Load a omimTitle from row fetched with select * from omimTitle
 * from database.  Dispose of this with omimTitleFree(). */

struct omimTitle *omimTitleLoadAll(char *fileName);
/* Load all omimTitle from whitespace-separated file.
 * Dispose of this with omimTitleFreeList(). */

struct omimTitle *omimTitleLoadAllByChar(char *fileName, char chopper);
/* Load all omimTitle from chopper separated file.
 * Dispose of this with omimTitleFreeList(). */

#define omimTitleLoadAllByTab(a) omimTitleLoadAllByChar(a, '\t');
/* Load all omimTitle from tab separated file.
 * Dispose of this with omimTitleFreeList(). */

struct omimTitle *omimTitleCommaIn(char **pS, struct omimTitle *ret);
/* Create a omimTitle out of a comma separated string. 
 * This will fill in ret if non-null, otherwise will
 * return a new omimTitle */

void omimTitleFree(struct omimTitle **pEl);
/* Free a single dynamically allocated omimTitle such as created
 * with omimTitleLoad(). */

void omimTitleFreeList(struct omimTitle **pList);
/* Free a list of dynamically allocated omimTitle's */

void omimTitleOutput(struct omimTitle *el, FILE *f, char sep, char lastSep);
/* Print out omimTitle.  Separate fields with sep. Follow last field with lastSep. */

#define omimTitleTabOut(el,f) omimTitleOutput(el,f,'\t','\n');
/* Print out omimTitle as a line in a tab-separated file. */

#define omimTitleCommaOut(el,f) omimTitleOutput(el,f,',',',');
/* Print out omimTitle as a comma separated list including final comma. */

/* -------------------------------- End autoSql Generated Code -------------------------------- */

#endif /* OMIMTITLE_H */

