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

#ifndef QUICKLIFTCHAIN_H
#define QUICKLIFTCHAIN_H

#define QUICKLIFTCHAIN_NUM_COLS 4

extern char *quickLiftChainCommaSepFieldNames;

struct quickLiftChain
/* bigChain files used by quickLift. */
    {
    struct quickLiftChain *next;  /* Next in singly linked list. */
    unsigned id;	/*  Auto-incrementing ID */
    char *fromDb;	/* Short name of 'from' database.  'hg15' or the like */
    char *toDb;	/* Short name of 'to' database.  'hg16' or the like */
    char *path;	/* Path to bigChain file */
    };

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

struct quickLiftChain *quickLiftChainLoad(char **row);
/* Load a quickLiftChain from row fetched with select * from quickLiftChain
 * from database.  Dispose of this with quickLiftChainFree(). */

struct quickLiftChain *quickLiftChainLoadAll(char *fileName);
/* Load all quickLiftChain from whitespace-separated file.
 * Dispose of this with quickLiftChainFreeList(). */

struct quickLiftChain *quickLiftChainLoadAllByChar(char *fileName, char chopper);
/* Load all quickLiftChain from chopper separated file.
 * Dispose of this with quickLiftChainFreeList(). */

#define quickLiftChainLoadAllByTab(a) quickLiftChainLoadAllByChar(a, '\t');
/* Load all quickLiftChain from tab separated file.
 * Dispose of this with quickLiftChainFreeList(). */

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

void quickLiftChainFree(struct quickLiftChain **pEl);
/* Free a single dynamically allocated quickLiftChain such as created
 * with quickLiftChainLoad(). */

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

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

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

#define quickLiftChainCommaOut(el,f) quickLiftChainOutput(el,f,',',',');
/* Print out quickLiftChain as a comma separated list including final comma. */

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

#endif /* QUICKLIFTCHAIN_H */

