Source: xql/xqlsearchengine.h
|
|
|
|
/***************************************************************************
xqlsearchengine.h - description
-------------------
begin : Sun Feb 10 2002
copyright : (C) 2002 by Raoul Markus
email : raoul.markus@gmx.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef XQLSEARCHENGINE_H
#define XQLSEARCHENGINE_H
/**provides functions for searching in the database
*@author Raoul Markus
*/
#include "xqlfactory.h"
#include
class xqlOdbc;
class xqlSession;
class xqlObjectList;
// typedef std::string xqlSearchExpr;
class xqlSearchEngine : public xqlFactory {
public:
xqlSearchEngine(xqlSession * pSession);
~xqlSearchEngine();
enum SearchType {ClassName, TypeName, AttribValue};
typedef std::string SearchValue;
class xqlSearchExpr {
public:
xqlSearchExpr(){};
xqlSearchExpr(xqlSearchEngine::SearchType pSearchType);
~xqlSearchExpr(){};
SearchType mSearchType;
SearchValue mSearchValue;
};
/** searches the database for objects matching the given search expression */
xqlObjectList * search(xqlSearchExpr * pExpr);
private: // Private attributes
/** */
xqlOdbc * mOdbc;
};
#endif
Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |