Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

vdkxctrl.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 
00029 #ifndef _vdkxdbctrl_h
00030 #define _vdkxdbctrl_h
00031 #include <xbase/xbase.h>
00032 #include <vdkxdb2/vdkxtable.h>
00033 
00034 // forward declaration
00035 class VDKXTable;
00036 
00049 class VDKXControl
00050 {
00051  protected:
00053   VDKXTable* table;
00055   VDKString field_name;
00057   xbShort field_id;
00066   xbShort field_type;
00067  public:
00068 
00070   VDKXControl();
00072   virtual ~VDKXControl() {}
00081   virtual bool AssignTableField(VDKXTable* table,char* fieldname);
00092   virtual bool AssignTableField(VDKXDatabase* xdb,
00093                                 char* tablename,
00094                                 char* fieldname);
00095 
00097   virtual xbShort Read() { return XB_NO_ERROR; }
00099   virtual xbShort Write() { return XB_NO_ERROR; }
00100 };
00101 #endif
00102 
00103 
00104 

Generated on Wed Apr 17 03:40:41 2002 for vdkxdb 2.0.1 by doxygen1.2.15