e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/hg/inc/flyBaseSwissProt.h src/hg/inc/flyBaseSwissProt.h index 239c9ad..9baadb8 100644 --- src/hg/inc/flyBaseSwissProt.h +++ src/hg/inc/flyBaseSwissProt.h @@ -1,64 +1,67 @@ /* flyBaseSwissProt.h was originally generated by the autoSql program, which also * generated flyBaseSwissProt.c and flyBaseSwissProt.sql. This header links the database and * the RAM representation of objects. */ +/* Copyright (C) 2003 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + #ifndef FLYBASESWISSPROT_H #define FLYBASESWISSPROT_H #define FLYBASESWISSPROT_NUM_COLS 4 struct flyBaseSwissProt /* FlyBase acc to SwissProt acc, plus some other SwissProt info */ { struct flyBaseSwissProt *next; /* Next in singly linked list. */ char *flyBaseId; /* FlyBase FBgn ID */ char *swissProtId; /* SwissProt ID */ char *spGeneName; /* (long) gene name from SwissProt */ char *spSymbol; /* symbolic-looking gene id from SwissProt */ }; void flyBaseSwissProtStaticLoad(char **row, struct flyBaseSwissProt *ret); /* Load a row from flyBaseSwissProt table into ret. The contents of ret will * be replaced at the next call to this function. */ struct flyBaseSwissProt *flyBaseSwissProtLoad(char **row); /* Load a flyBaseSwissProt from row fetched with select * from flyBaseSwissProt * from database. Dispose of this with flyBaseSwissProtFree(). */ struct flyBaseSwissProt *flyBaseSwissProtLoadAll(char *fileName); /* Load all flyBaseSwissProt from whitespace-separated file. * Dispose of this with flyBaseSwissProtFreeList(). */ struct flyBaseSwissProt *flyBaseSwissProtLoadAllByChar(char *fileName, char chopper); /* Load all flyBaseSwissProt from chopper separated file. * Dispose of this with flyBaseSwissProtFreeList(). */ #define flyBaseSwissProtLoadAllByTab(a) flyBaseSwissProtLoadAllByChar(a, '\t'); /* Load all flyBaseSwissProt from tab separated file. * Dispose of this with flyBaseSwissProtFreeList(). */ struct flyBaseSwissProt *flyBaseSwissProtCommaIn(char **pS, struct flyBaseSwissProt *ret); /* Create a flyBaseSwissProt out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new flyBaseSwissProt */ void flyBaseSwissProtFree(struct flyBaseSwissProt **pEl); /* Free a single dynamically allocated flyBaseSwissProt such as created * with flyBaseSwissProtLoad(). */ void flyBaseSwissProtFreeList(struct flyBaseSwissProt **pList); /* Free a list of dynamically allocated flyBaseSwissProt's */ void flyBaseSwissProtOutput(struct flyBaseSwissProt *el, FILE *f, char sep, char lastSep); /* Print out flyBaseSwissProt. Separate fields with sep. Follow last field with lastSep. */ #define flyBaseSwissProtTabOut(el,f) flyBaseSwissProtOutput(el,f,'\t','\n'); /* Print out flyBaseSwissProt as a line in a tab-separated file. */ #define flyBaseSwissProtCommaOut(el,f) flyBaseSwissProtOutput(el,f,',',','); /* Print out flyBaseSwissProt as a comma separated list including final comma. */ /* -------------------------------- End autoSql Generated Code -------------------------------- */ #endif /* FLYBASESWISSPROT_H */