060ada2535fca719656219c1214a3e1c16490693 tdreszer Wed Nov 9 16:06:41 2011 -0800 Moved as code in hgTables down to lib and access it from hgc and hgTrackUi. This is to remove 'extraFields' support as per Jim's request in redmine 5883 and 5582 diff --git src/hg/inc/bedDetail.h src/hg/inc/bedDetail.h index 3ec3ffd..67a8ba0 100644 --- src/hg/inc/bedDetail.h +++ src/hg/inc/bedDetail.h @@ -1,22 +1,24 @@ /* bedDetail.h was originally generated by the autoSql program, which also * generated bedDetail.c and bedDetail.sql. This header links the database and * the RAM representation of objects. */ #ifndef BEDDETAIL_H #define BEDDETAIL_H +#include "asParse.h" + #define BEDDETAIL_NUM_COLS 14 struct bedDetail /* Browser extensible data, with extended fields for detail page */ { struct bedDetail *next; /* Next in singly linked list. */ char *chrom; /* Reference sequence chromosome or scaffold */ unsigned chromStart; /* Start position in chromosome */ unsigned chromEnd; /* End position in chromosome */ char *name; /* Short Name of item */ unsigned score; /* Score from 0-1000 */ char strand[2]; /* + or - */ unsigned thickStart; /* Start of where display should be thick (start codon) */ unsigned thickEnd; /* End of where display should be thick (stop codon) */ unsigned reserved; /* Used as itemRgb as of 2004-11-22 */ @@ -54,26 +56,27 @@ void bedDetailFreeList(struct bedDetail **pList); /* Free a list of dynamically allocated bedDetail's */ void bedDetailOutput(struct bedDetail *el, FILE *f, char sep, char lastSep, int size); /* Print out bedDetail. Separate fields with sep. Follow last field with lastSep. */ #define bedDetailTabOut(el,f) bedDetailOutput(el,f,'\t','\n'); /* Print out bedDetail as a line in a tab-separated file. */ #define bedDetailCommaOut(el,f) bedDetailOutput(el,f,',',','); /* Print out bedDetail as a comma separated list including final comma. */ /* -------------------------------- End autoSql Generated Code -------------------------------- */ -extern char *bedDetailAutoSqlString; +struct asObject *bedDetailAsObj(); +// Return asObject describing fields of bedDetail struct bedDetail *bedDetailLoadWithGaps(char **row, int size); /* Load a bedDetail from row split from a file or from database, may have parts of BED not included. Dispose of this with bedDetailFree(). */ struct bedDetail *bedDetailLineFileLoad (char **row, int size, struct lineFile *lf); /* load from linefile line, with error checking */ #endif /* BEDDETAIL_H */