Xbase Class Library  2.0.0
xbfilter.h
Go to the documentation of this file.
1 /* xbfilter.h
2 
3  Xbase project source code
4 
5  This file conatains a header file for the xbFilter object which
6  is used for filtering data.
7 
8  Copyright (C) 1997 Startech, Gary A. Kunkel
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 2.1 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 
24  Contact:
25 
26  Mail:
27 
28  Technology Associates, Inc.
29  XBase Project
30  1455 Deming Way #11
31  Sparks, NV 89434
32  USA
33 
34  Email:
35 
36  xbase@techass.com
37 
38  See our website at:
39 
40  xdb.sourceforge.net
41 
42 
43  V 1.0 10/10/97 - Initial release of software
44  V 1.5 1/2/97 - Added memo field support
45  V 1.6a 4/1/98 - Added expression support
46  V 1.6b 4/8/98 - Numeric index keys
47 */
48 
52 #ifndef __XB_FILTER_H__
53 #define __XB_FILTER_H__
54 
55 #ifdef __GNUG__
56 #pragma interface
57 #endif
58 
60 
64  public:
65  xbFilter( xbDbf * dbf, xbIndex * index, char * expression );
66  xbShort GetFirstFilterRec();
67  xbShort GetLastFilterRec();
68  xbShort GetNextFilterRec();
69  xbShort GetPrevFilterRec();
70  protected:
73  xbExpNode *e;
74  xbDbf *d;
76 };
77 
78 #endif
xbExpNode * e
Definition: xbfilter.h:73
#define XBDLLEXPORT
Definition: xbase.h:101
xbIndex * i
Definition: xbfilter.h:75
xbDbf * d
Definition: xbfilter.h:74
xbShort Status
Definition: xbfilter.h:72
unsigned long int xbULong
xbULong type
Definition: xtypes.h:57
xbIndex class
Definition: index.h:67
xbULong CurFilterRecNo
Definition: xbfilter.h:71
xbFilter class
Definition: xbfilter.h:63
short int xbShort
xbShort type
Definition: xtypes.h:65
xbMH struct
Definition: dbf.h:201