vdkxdb 2.4.0
vdkxdb.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * xdb subsystem
5  * Version 0.1
6  * Revision 0.0
7  * April 2000
8  * ===========================
9  *
10  * Copyright (C) 1998, Mario Motta
11  * Developed by Mario Motta <mmotta@guest.net>
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26  * 02111-1307, USA.
27  */
28 #ifndef _vdkxdb_h
29 #define _vdkxdb_h
30 #include <xbase/xbase.h>
31 #include <vdk/dlist.h>
32 
33 class VDKXTable;
34 typedef VDKList<VDKXTable> TableList;
35 typedef VDKListIterator<VDKXTable> TableListIterator;
36 
41 class VDKXDatabase: public xbXBase
42 {
43  private:
44  TableList tList;
45  bool initialized;
46  public:
48  VDKXDatabase();
50  virtual ~VDKXDatabase();
56  bool RemoveTable(char* name);
58  bool Initialized() { return initialized; }
63  VDKXTable* operator[](char* name);
68  VDKXTable* operator[](int k);
70  TableList* TList() { return &tList; }
74  void Clear();
75 };
81 extern char* VDKXError(short errorcode);
82 
83 #endif
84 
bool Initialized()
Returns if xdb is initialized or not.
Definition: vdkxdb.h:58
VDKXDatabase()
Constructor.
Definition: vdkxdb.cc:32
TableList * TList()
Returns database table list.
Definition: vdkxdb.h:70
void Clear()
Definition: vdkxdb.cc:51
VDKXTable * operator[](char *name)
Definition: vdkxdb.cc:79
bool RemoveTable(char *name)
Definition: vdkxdb.cc:64
Provides a xbXBase wrapper.
Definition: vdkxdb.h:41
virtual ~VDKXDatabase()
Destructor.
Definition: vdkxdb.cc:39
Provides a xbDbf wrapper.
Definition: vdkxtable.h:55