vdkxdb.h

00001 /*
00002  * ===========================
00003  * VDK Visual Development Kit
00004  * xdb subsystem
00005  * Version 0.1
00006  * Revision 0.0
00007  * April 2000
00008  * ===========================
00009  *
00010  * Copyright (C) 1998, Mario Motta
00011  * Developed by Mario Motta <mmotta@guest.net>
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Library General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Library General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Library General Public
00024  * License along with this library; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00026  * 02111-1307, USA.
00027  */
00028 #ifndef _vdkxdb_h
00029 #define _vdkxdb_h
00030 #include <xbase/xbase.h>
00031 #include <vdk/dlist.h>
00032 
00033 class VDKXTable;
00034 typedef VDKList<VDKXTable> TableList;
00035 typedef VDKListIterator<VDKXTable> TableListIterator;
00036 
00041 class VDKXDatabase: public xbXBase
00042 {
00043  private:
00044   TableList tList;
00045   bool initialized;
00046  public:
00048   VDKXDatabase();
00050   virtual ~VDKXDatabase();
00056   bool RemoveTable(char* name);
00058   bool Initialized() { return initialized; }
00063   VDKXTable* operator[](char* name);
00068   VDKXTable* operator[](int k);
00070   TableList* TList() { return &tList; }
00074   void Clear();
00075 };
00081 extern char* VDKXError(short errorcode);
00082 
00083 #endif
00084 

Generated on Sun Oct 16 13:02:46 2005 for vdkxdb 2.4.0 by  doxygen 1.4.5