datum.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 DBA_MSG_DATUM_H
00023 #define DBA_MSG_DATUM_H
00024 
00031 #ifdef  __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 #include <dballe/core/var.h>
00036 
00040 struct _dba_msg_datum
00041 {
00043     dba_var var;
00044 
00046     int pind;
00048     int p1;
00050     int p2;
00051 };
00053 typedef struct _dba_msg_datum* dba_msg_datum;
00054 
00069 dba_err dba_msg_datum_create(int pind, int p1, int p2, dba_msg_datum* d);
00070 
00081 dba_err dba_msg_datum_copy(dba_msg_datum src, dba_msg_datum* dst);
00082 
00089 void dba_msg_datum_delete(dba_msg_datum d);
00090 
00101 int dba_msg_datum_compare(const dba_msg_datum d1, const dba_msg_datum d2);
00102 
00120 int dba_msg_datum_compare2(dba_msg_datum d, dba_varcode code, int pind, int p1, int p2);
00121 
00122 
00123 #ifdef  __cplusplus
00124 }
00125 #endif
00126 
00127 // vim:set ts=4 sw=4:
00128 #endif

Generated on Fri Jun 22 15:34:02 2007 for libdballe-db by  doxygen 1.5.2