lux/query/query.h

00001 #ifndef LUX_QUERY_QUERY_H
00002 #define LUX_QUERY_QUERY_H
00003 
00004 #include <string>
00005 #include "lux/index/index_result.h"
00006 
00007 namespace Lux {
00008     
00009   class SearchIndex;
00010 
00011   class Query {
00012 
00013   public:
00014     virtual ~Query(void) {};
00015     virtual IndexResultSet search(SearchIndex *si) = 0;
00016     void set_boost(float boost) { boost = boost; }
00017     float get_boost(void) const { return boost; }
00018     virtual std::string to_str(void) = 0;
00019 
00020   private:
00021     float boost;
00022   };
00023  
00024 }
00025 
00026 #endif

Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7