verbose.h

Go to the documentation of this file.
00001 /*
00002  * DB-ALLe - Archive for punctual meteorological data
00003  *
00004  * Copyright (C) 2005,2006  ARPA-SIM <urpsim@smr.arpa.emr.it>
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License.
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 Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00018  *
00019  * Author: Enrico Zini <enrico@enricozini.com>
00020  */
00021 
00022 #ifndef VERBOSE_H
00023 #define VERBOSE_H
00024 
00025 #ifdef  __cplusplus
00026 extern "C" {
00027 #endif
00028 
00038 #define DBA_VERBOSE_STREAM stderr
00039 
00043 enum {
00044     DBA_VERB_NONE = 0,
00045     DBA_VERB_DB_INPUT = 1,
00046     DBA_VERB_DB_SQL = 2,
00047     DBA_VERB_BUFREX_MSG = 4,
00048 };
00049 
00055 void dba_verbose_init();
00056 
00060 int dba_verbose_is_allowed(int lev);
00061 
00066 void dba_verbose(int lev, const char* fmt, ...);
00067 
00068 
00069 #ifdef  __cplusplus
00070 }
00071 #endif
00072 
00073 #endif

Generated on Fri Jun 22 15:33:55 2007 for libdballe-core by  doxygen 1.5.2