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

VTQL::Region_basic Class Reference

Parse matches within a VTQL command and test input lines for matches. More...

#include <vtql_parse.h>

List of all members.

Public Methods

virtual ~Region_basic ()
 Region_basic (const Region_basic &)
 Region_basic (const std::vector< size_t > &bases)
 Construct and define the syntax. More...

virtual void NewString (std::string match, const std::string &search="/|\\")
 Parse a new match string. More...

bool MatchTxt (const PageData &) const
bool IsIn (int, int) const
bool HasTextSearch () const

Protected Types

typedef std::list< std::pair<
int, int > > 
SingleRange
typedef std::vector< SingleRange > RangeVec

Protected Attributes

const std::vector< size_t > vBases
RangeVec rvAll


Detailed Description

Parse matches within a VTQL command and test input lines for matches.

This handles the monsters called match (read VTQL syntax documentation!), such as "-98.unknown,europe_west::E2.100,333..2-/linux.+OS" . But is is quite general and may be used for simular queries. The interface is wired, since it is quite critical to the speed of the server, but if you really need VTQL compatible match parsing this may be usfull, anyway.


Constructor & Destructor Documentation

VTQL::Region_basic::Region_basic const Region_basic &   
 

\warn No implementation of the copy constructor.

VTQL::Region_basic::Region_basic const std::vector< size_t > &    bases
 

Construct and define the syntax.

The fields separate with "." may have a different base, such as decimal (10) or hexadecimal (16). There is a special base 0 for frequency fields. For any entry in the vector you have a field in your query. The VTQL standard is {10,0,16,16,10} (station_id,freuquency,page_nr,subpage_nr,line_nr).

Parameters:
bases  The base for each field of the match.


Member Function Documentation

virtual void VTQL::Region_basic::NewString std::string    match,
const std::string &    search = "/|\\"
[virtual]
 

Parse a new match string.

Cleans all the data of the last query and parses a new match.

Parameters:
match  The match string, that should be parsed.
search  Search modes allowed.


The documentation for this class was generated from the following file:
Generated on Sun Apr 14 17:37:04 2002 for libvtql by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002