open-source-search-engine/PageResults.h
2013-08-02 13:12:24 -07:00

35 lines
926 B
C

#ifndef _PAGERESULTS_H_
#define _PAGERESULTS_H_
#include "SafeBuf.h"
bool printTermPairs ( SafeBuf &sb , class Query *q , class PairScore *ps ) ;
bool printSingleTerm ( SafeBuf &sb , class Query *q , class SingleScore *ss );
bool printEventAddress ( SafeBuf &sb , char *addrStr , class SearchInput *si ,
double *lat , double *lon , bool isXml ,
// use this for printing distance if lat/lon above
// is invalid. only for non-xml printing though.
float zipLat ,
float zipLon ,
double eventGeocoderLat,
double eventGeocoderLon,
char *eventBestPlaceName );
bool printEventCountdown2 ( SafeBuf &sb ,
SearchInput *si,
long now ,
long timeZoneOffset ,
char useDST,
long nextStart ,
long nextEnd ,
long prevStart ,
long prevEnd ,
bool storeHours ,
bool onlyPrintIfSoon ) ;
char **getEventCategories();
#endif