Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

xbfilter.h

Go to the documentation of this file.
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  Gary A. Kunkel   
00009 
00010     This library is free software; you can redistribute it and/or
00011     modify it under the terms of the GNU Lesser General Public
00012     License as published by the Free Software Foundation; either
00013     version 2.1 of the License, or (at your option) any later version.
00014 
00015     This library 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 GNU
00018     Lesser General Public License for more details.
00019 
00020     You should have received a copy of the GNU Lesser General Public
00021     License along with this library; if not, write to the Free Software
00022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023 
00024     Contact:
00025 
00026       Mail:
00027 
00028         Technology Associates, Inc.
00029         XBase Project
00030         1455 Deming Way #11
00031         Sparks, NV 89434
00032         USA
00033 
00034       Email:
00035 
00036         xbase@techass.com
00037         xdb-devel@lists.sourceforge.net
00038         xdb-users@sourceforge.net
00039 
00040       See our website at:
00041 
00042         xdb.sourceforge.net
00043 
00044 */
00045 
00049 #ifndef __XB_FILTER_H__
00050 #define __XB_FILTER_H__
00051 
00052 #ifdef __GNUG__
00053 #pragma interface
00054 #endif
00055 
00057 
00060 class XBDLLEXPORT xbFilter
00061 {
00062 public:
00063   xbFilter( xbDbf * dbf, xbIndex * index, char * expression );
00064   virtual ~xbFilter();
00065 
00066   xbShort GetFirstFilterRec();
00067   xbShort GetLastFilterRec();
00068   xbShort GetNextFilterRec();
00069   xbShort GetPrevFilterRec();
00070 
00071 protected:
00072   xbULong CurFilterRecNo;
00073   xbShort Status;
00074   xbExpNode *e;
00075   xbDbf *d;
00076   xbIndex *i;
00077 };
00078 
00079 #endif

Generated on Wed Jan 26 11:45:09 2005 for Xbase Class Library by  doxygen 1.4.1