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

QueryResult.h

00001 /*
00002    Copyright (C) 2002 the Strongroom project
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    @author Denis de Leeuw Duarte
00010 */
00011 
00012 #ifndef __QUERYRESULT_H_
00013 #define __QUERYRESULT_H_
00014 
00015 #include <vector>
00016 
00017 #include <Common.h>
00018 #include <Error.h>
00019 #include <Query.h>
00020 
00021 
00025 class QueryResult
00026 {
00027  public:
00028 
00036   QueryResult( Query query , vector<NumID> resultList );
00037 
00043   QueryResult( Query query );
00044 
00045   ~QueryResult();
00046 
00052   Query getQuery();
00053 
00059   void addResult( NumID docid );
00060   
00070   void deleteResult( NumID docid ); 
00071   
00076   vector<NumID>::iterator getIterator(); 
00077   
00078  private:
00079 
00080   Query docQuery;
00081   vector<NumID> results; 
00082 
00083 };
00084 
00085 #endif /*__QUERYRESULT_H_*/

Generated on Wed Feb 18 13:45:55 2004 for strongroom by doxygen1.2.18