00001 /* 00002 wdb 00003 00004 Copyright (C) 2007 met.no 00005 00006 Contact information: 00007 Norwegian Meteorological Institute 00008 Box 43 Blindern 00009 0313 OSLO 00010 NORWAY 00011 E-mail: wdb@met.no 00012 00013 This program is free software; you can redistribute it and/or modify 00014 it under the terms of the GNU General Public License as published by 00015 the Free Software Foundation; either version 2 of the License, or 00016 (at your option) any later version. 00017 00018 This program is distributed in the hope that it will be useful, 00019 but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 GNU General Public License for more details. 00022 00023 You should have received a copy of the GNU General Public License 00024 along with this program; if not, write to the Free Software 00025 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 MA 02110-1301, USA 00027 */ 00028 00029 #ifndef FELTTYPECONVERSION_H_ 00030 #define FELTTYPECONVERSION_H_ 00031 00032 #include "FeltConstants.h" 00033 #include <boost/date_time/posix_time/posix_time_types.hpp> 00034 00035 namespace felt 00036 { 00037 template<typename T> 00038 T get(word w) 00039 { 00040 return (T) w; 00041 } 00042 00043 boost::posix_time::ptime parseTime(const word * data); 00044 00045 boost::posix_time::ptime parseTimeNoThrow(const word * data); 00046 00047 00048 } 00049 00050 #endif /*FELTTYPECONVERSION_H_*/