5f9691856204ac8ee77795e1b9a89f82f825d2cd angie Fri Jun 1 14:39:34 2012 -0700 Feature #6152 (Variant Annotation Integrator): added getHeader methodto annoStreamer so formatters can include primary source's header in output -- header is a crucial part of some formats e.g. VCF. diff --git src/inc/annoStreamer.h src/inc/annoStreamer.h index 3a3d154..6024482 100644 --- src/inc/annoStreamer.h +++ src/inc/annoStreamer.h @@ -18,30 +18,33 @@ struct annoStreamer /* Generic interface to configure a data source's filters and output data, and then * retrieve data, which must be sorted by genomic position. Subclasses of this * will do all the actual work. */ { struct annoStreamer *next; // Public methods struct asObject *(*getAutoSqlObject)(struct annoStreamer *self); /* Get autoSql representation (do not modify or free!) */ void (*setRegion)(struct annoStreamer *self, char *chrom, uint rStart, uint rEnd); /* Set genomic region for query (should be called only by annoGratorQuerySetRegion) */ + char *(*getHeader)(struct annoStreamer *self); + /* Get the file header as a string (possibly NULL, possibly multi-line). */ + struct annoFilter *(*getFilters)(struct annoStreamer *self); void (*setFilters)(struct annoStreamer *self, struct annoFilter *newFilters); /* Get and set filters */ struct annoColumn *(*getColumns)(struct annoStreamer *self); void (*setColumns)(struct annoStreamer *self, struct annoColumn *newColumns); /* Get and set output fields */ struct annoRow *(*nextRow)(struct annoStreamer *self); /* Get next item's output fields from this source */ void (*close)(struct annoStreamer **pSelf); /* Close connection to source and free self. */ void (*setQuery)(struct annoStreamer *self, struct annoGratorQuery *query);