Forums  +  C++ and Sockets  +  C++ and SQL: MySQL, sqlite, ODBC  +  Miscellaneous Projects
Logo
~Database~
~ C++ ~
~Contact~

SysLog.h

Go to the documentation of this file.
00001 /*
00002  **     SysLog.h
00003  **
00004  **     Published / author: 2004-08-18 / grymse@alhem.net
00005  **/
00006 
00007 /*
00008 Copyright (C) 2004,2005,2006  Anders Hedstrom
00009 
00010 This program is made available under the terms of the GNU GPL.
00011 
00012 If you would like to use this program in a closed-source application,
00013 a separate license agreement is available. For information about 
00014 the closed-source license agreement for this program, please
00015 visit http://www.alhem.net/sqlwrapped/license.html and/or
00016 email license@alhem.net.
00017 
00018 This program is free software; you can redistribute it and/or
00019 modify it under the terms of the GNU General Public License
00020 as published by the Free Software Foundation; either version 2
00021 of the License, or (at your option) any later version.
00022 
00023 This program is distributed in the hope that it will be useful,
00024 but WITHOUT ANY WARRANTY; without even the implied warranty of
00025 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00026 GNU General Public License for more details.
00027 
00028 You should have received a copy of the GNU General Public License
00029 along with this program; if not, write to the Free Software
00030 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00031 */
00032 #ifndef _SYSLOG_H_SQLITE
00033 #define _SYSLOG_H_SQLITE
00034 #ifndef WIN32
00035 
00036 #include <syslog.h>
00037 
00038 
00039 #ifdef SQLITEW_NAMESPACE
00040 namespace SQLITEW_NAMESPACE {
00041 #endif
00042 
00043 
00045 class SysLog : public IError
00046 {
00047 public:
00048         SysLog(const std::string& = "database", int = LOG_PID, int = LOG_USER);
00049         virtual ~SysLog();
00050 
00051         void error(Database&,const std::string&);
00052         void error(Database&,Query&,const std::string&);
00053 
00054 };
00055 
00056 
00057 
00058 #ifdef SQLITEW_NAMESPACE
00059 } // namespace SQLITEW_NAMESPACE {
00060 #endif
00061 
00062 #endif // WIN32
00063 #endif // _SYSLOG_H
Page, code, and content Copyright (C) 2006 by Anders Hedström