Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ResultFile Class Reference

representation of result file. More...

#include <ResultFile.hpp>

List of all members.

Public Methods

 ResultFile (bool TRECFormat=true)
 ~ResultFile ()
void openForRead (istream &is,Index &index)
 Open and associate an input stream for reading, e.g., with getResult function.

void getResult (char *expectedQID,IndexedRealVector &res)
 Read the results for a given query from the associated input stream into memory (stored in res).

void openForWrite (ostream &os,Index &index)
 Associate an output stream for writing results.

void writeResults (char *queryID,IndexedRealVector *results,int maxCountOfResult)
 writing the results (stored in results) into the associated output stream, up to a maximum count.


Detailed Description

representation of result file.


Constructor & Destructor Documentation

ResultFile::ResultFile ( bool TRECFormat = true ) [inline]
 

ResultFile::~ResultFile ( ) [inline]
 


Member Function Documentation

void ResultFile::getResult ( char * expectedQID,
IndexedRealVector & res )
 

Read the results for a given query from the associated input stream into memory (stored in res).

void ResultFile::openForRead ( istream & is,
Index & index )
 

Open and associate an input stream for reading, e.g., with getResult function.

void ResultFile::openForWrite ( ostream & os,
Index & index ) [inline]
 

Associate an output stream for writing results.

void ResultFile::writeResults ( char * queryID,
IndexedRealVector * results,
int maxCountOfResult )
 

writing the results (stored in results) into the associated output stream, up to a maximum count.


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:25:50 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000