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

MindDBManager Class Reference

#include <MindDBManager.hpp>

Inheritance diagram for MindDBManager:

DBManager MemParser TextHandler List of all members.

Public Methods

 MindDBManager ()
 ~MindDBManager ()
void open (char *dbname)
 Open a Mind database - The dbname is a semicolon seperated string with the proxy, proxy url, proxy-interface, proxy-construction-text, and the number of docs in the db components. Example: urn:proxy.Google;http://....;urn:proxy-interface.Google;urn:proxy-construction-text.Google;2000000000.

results_tquery (char *query,int numdocs)
 Query the database.

void parse (doc_t *doc)
 Parse a document. (Gets the proxy-construction-text to do the work.).

MemParsergetParser ()
 Get a parser for the database. (Really this same object.).

doc_tgetDoc (docid_t docid)
 Get a document given its document id.

void output (docid_t docid)
 Send a document to the proxy.

void setOutputFile (char *filename)
 Set the proxy documents will be sent to. Example: urn:proxy.Google.

void close ()
 Close the database.


Detailed Description

Provides a simple wrapper to mind databases for use with the query-based sampling code.


Constructor & Destructor Documentation

MindDBManager::MindDBManager ( )
 

MindDBManager::~MindDBManager ( )
 


Member Function Documentation

void MindDBManager::close ( ) [virtual]
 

Close the database.

Reimplemented from DBManager.

doc_t * MindDBManager::getDoc ( docid_t docid ) [virtual]
 

Get a document given its document id.

Reimplemented from DBManager.

MemParser * MindDBManager::getParser ( ) [virtual]
 

Get a parser for the database. (Really this same object.).

Reimplemented from DBManager.

void MindDBManager::open ( char * dbname ) [virtual]
 

Open a Mind database - The dbname is a semicolon seperated string with the proxy, proxy url, proxy-interface, proxy-construction-text, and the number of docs in the db components. Example: urn:proxy.Google;http://....;urn:proxy-interface.Google;urn:proxy-construction-text.Google;2000000000.

Reimplemented from DBManager.

void MindDBManager::output ( docid_t docid ) [virtual]
 

Send a document to the proxy.

Reimplemented from DBManager.

void MindDBManager::parse ( doc_t * doc ) [virtual]
 

Parse a document. (Gets the proxy-construction-text to do the work.).

Reimplemented from MemParser.

results_t * MindDBManager::query ( char * query,
int numDocs ) [virtual]
 

Query the database.

Reimplemented from DBManager.

void MindDBManager::setOutputFile ( char * filename ) [virtual]
 

Set the proxy documents will be sent to. Example: urn:proxy.Google.

Reimplemented from DBManager.


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