00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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 };
00065
00066 #endif // _LIBSAMPLE_H