libsample.h

Go to the documentation of this file.
00001 /*
00002  *       libsample.h
00003  *       Generated by sql2class by (C) AH 2000
00004  *       Sun May 30 12:33:47 2004
00005  */
00006 
00007 /*
00008 Copyright (C) 2001  Anders Hedstrom (grymse@alhem.net)
00009 
00010 This program is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 This program 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
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 */
00024 
00025 #ifndef _LIBSAMPLE_H
00026 #define _LIBSAMPLE_H
00027 
00028 #ifdef _WIN32
00029 #define strncasecmp strnicmp
00030 #define strcasecmp stricmp
00031 #endif // _WIN32
00032 
00037 class Sampletable {
00038 public:
00039         Sampletable(Database *);
00040         Sampletable(Database *,const std::string& );
00041         Sampletable(Database *,Query *);
00042         Sampletable(Database&,long num);
00043         ~Sampletable();
00044         void select(const std::string& );
00045         long insert();
00046         void update();
00047         void save();
00048         void erase();
00049         std::string xml();
00050         std::string xml(const std::string& ,const std::string& );
00051         int num_cols();
00052 
00053         long num;
00054         char name[256];
00055 
00056 private:
00057         void update(long num);
00058         void clear();
00059         void spawn(const std::string& );
00060         void spawn(Query *);
00061         //
00062         Database *database;
00063         short new_object;
00064 }; // End of class 'Sampletable'
00065 
00066 #endif // _LIBSAMPLE_H

Generated for dbdesigner by doxygen 1.3.6