00001 /* xbfilter.h 00002 00003 Xbase project source code 00004 00005 This file conatains a header file for the xbFilter object which 00006 is used for filtering data. 00007 00008 Copyright (C) 1997,2003 Gary A Kunkel 00009 00010 This program is free software; you can redistribute it and/or modify 00011 it under the terms of the GNU Lesser General Public License as published by 00012 the Free Software Foundation; either version 2 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU Lesser General Public License for more details. 00019 00020 You should have received a copy of the GNU Lesser General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 00024 00025 Contact: 00026 00027 Email: 00028 00029 xdb-devel@lists.sourceforge.net 00030 xdb-users@lists.sourceforge.net 00031 00032 00033 Regular Mail: 00034 00035 XBase Support 00036 149C South Main St 00037 Keller Texas, 76248 00038 USA 00039 */ 00040 00044 #ifndef __XB_FILTER_H__ 00045 #define __XB_FILTER_H__ 00046 00047 #ifdef __GNU LesserG__ 00048 #pragma interface 00049 #endif 00050 00052 00055 class XBDLLEXPORT xbFilter 00056 { 00057 public: 00058 xbFilter( xbDbf * dbf, xbIndex * index, char * expression ); 00059 virtual ~xbFilter(); 00060 00061 xbShort GetFirstFilterRec(); 00062 xbShort GetLastFilterRec(); 00063 xbShort GetNextFilterRec(); 00064 xbShort GetPrevFilterRec(); 00065 xbShort GetStatus() { return Status; } 00066 00067 protected: 00068 xbULong CurFilterRecNo; 00069 xbShort Status; 00070 xbExpn * flExpn; 00071 xbDbf *d; 00072 xbIndex *i; 00073 }; 00074 00075 #endif