7d86e0ffbe4295c91220ff671c3eeb2009d41408 braney Sun Feb 25 11:09:39 2024 -0800 working on quickLift UI diff --git src/hg/inc/quickLiftChain.h src/hg/inc/quickLiftChain.h new file mode 100644 index 0000000..60bd859 --- /dev/null +++ src/hg/inc/quickLiftChain.h @@ -0,0 +1,66 @@ +/* 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 */ +