00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Michael Moritz * 00003 * mimo@restoel.net * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 #ifndef DBDEFS_H 00021 #define DBDEFS_H 00022 00023 #include <stdexcept> 00024 #include "wlmodule.h" 00025 #include "triplet.h" 00026 00031 class WLStaticDef 00032 { 00033 public: 00034 const char* _tableName; 00035 const char* _testTable; 00036 const char* _createTable[MAX_CREATECMDS]; 00037 const char* _primaryKey; 00038 WlModule::CompareMode _compareMode; 00039 const char* _searchTable; 00040 WLCompares _compares; 00041 const char* _commentField; 00042 }; 00043 const WLStaticDef& g_getTripletDef(); 00044 const WLStaticDef& g_getWlDef(const std::string& tableName) throw (std::out_of_range); 00045 #endif
1.5.1