src/hg/inc/trackDb.h 1.59

1.59 2010/05/11 01:43:29 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/inc/trackDb.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/trackDb.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -b -B -U 4 -r1.58 -r1.59
--- src/hg/inc/trackDb.h	7 May 2010 05:31:12 -0000	1.58
+++ src/hg/inc/trackDb.h	11 May 2010 01:43:29 -0000	1.59
@@ -15,9 +15,10 @@
 struct trackDb
 /* This describes an annotation track. */
     {
     struct trackDb *next;  /* Next in singly linked list.  Next sibling in tree. */
-    char *tableName;	/* Symbolic ID of Track */
+    char *track; /* Symbolic ID of Track - used in cart. Is tableName in database historically. */
+    char *table; /* Symbolic ID of Table - used in database. Same as track usually. */
     char *shortLabel;	/* Short label displayed on left */
     char *type;	/* Track type: bed, psl, genePred, etc. */
     char *longLabel;	/* Long label displayed in middle */
     unsigned char visibility;	/* 0=hide, 1=dense, 2=full, 3=pack, 4=squish */
@@ -339,8 +340,11 @@
  * reference to them in the returned forest is that they are in the parent
  * field of their children.  The parents of supertracks have no subtracks
  * after this call currently. */
 
+void trackDbAddTableField(struct trackDb *tdbList);
+/* Add table field by looking it up in settings.  */
+
 struct slRef *trackDbListGetRefsToDescendants(struct trackDb *tdbForest);
 /* Return reference list to everything in forest. Do slFreeList when done. */
 
 struct slRef *trackDbListGetRefsToDescendantLeaves(struct trackDb *tdbForest);