Xapian::NumberValueRangeProcessor Class Reference

Handle a number range. More...

#include <queryparser.h>

Inheritance diagram for Xapian::NumberValueRangeProcessor:

Inheritance graph
[legend]
Collaboration diagram for Xapian::NumberValueRangeProcessor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NumberValueRangeProcessor (Xapian::valueno valno_)
 NumberValueRangeProcessor (Xapian::valueno valno_, const std::string &str_, bool prefix_=true)
Xapian::valueno operator() (std::string &begin, std::string &end)
 See if <begin>.

Detailed Description

Handle a number range.

This class currently has a design bug - a string comparison is used so the numbers must be the same length for it to work, but you can't just zero pad the values in the database because those from the query aren't. We therefore recommend that you avoid using this class at present.


Member Function Documentation

Xapian::valueno Xapian::NumberValueRangeProcessor::operator() std::string &  begin,
std::string &  end
[virtual]
 

See if <begin>.

.<end> is a valid value range.

If this ValueRangeProcessor recognises <begin>..<end> it returns the value number of range filter on. Otherwise it returns Xapian::BAD_VALUENO.

Implements Xapian::ValueRangeProcessor.


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.1).
Generated on 11 Jun 2007 by Doxygen 1.4.6.