libwreport 2.1
|
00001 /* 00002 * wreport/conv - Unit conversions 00003 * 00004 * Copyright (C) 2005--2010 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 WREPORT_CONV 00023 #define WREPORT_CONV 00024 00030 namespace wreport { 00031 00046 double convert_units(const char* from, const char* to, double val); 00047 00051 double convert_icao_to_press(double from); 00052 00056 double convert_press_to_icao(double from); 00057 00062 int convert_AOFVSS_to_BUFR08042(int from); 00063 00068 int convert_WMO0500_to_BUFR20012(int from); 00070 int convert_WMO0509_to_BUFR20012(int from); 00072 int convert_WMO0515_to_BUFR20012(int from); 00074 int convert_WMO0513_to_BUFR20012(int from); 00076 int convert_WMO4677_to_BUFR20003(int from); 00078 int convert_WMO4561_to_BUFR20004(int from); 00079 00081 int convert_BUFR20012_to_WMO0500(int from); 00083 int convert_BUFR20012_to_WMO0509(int from); 00085 int convert_BUFR20012_to_WMO0515(int from); 00087 int convert_BUFR20012_to_WMO0513(int from); 00089 int convert_BUFR20003_to_WMO4677(int from); 00091 int convert_BUFR20004_to_WMO4561(int from); 00093 int convert_BUFR08001_to_BUFR08042(int from); 00095 int convert_BUFR08042_to_BUFR08001(int from); 00096 /* @} */ 00097 00108 double convert_units_get_mul(const char* from, const char* to); 00109 00120 bool convert_units_allowed(const char* from, const char* to); 00121 } 00122 00123 /* vim:set ts=4 sw=4: */ 00124 #endif