MI - Fimex
FeltTypeConversion.h
Go to the documentation of this file.
1 /*
2  wdb
3 
4  Copyright (C) 2007 met.no
5 
6  Contact information:
7  Norwegian Meteorological Institute
8  Box 43 Blindern
9  0313 OSLO
10  NORWAY
11  E-mail: wdb@met.no
12 
13  This program is free software; you can redistribute it and/or modify
14  it under the terms of the GNU General Public License as published by
15  the Free Software Foundation; either version 2 of the License, or
16  (at your option) any later version.
17 
18  This program is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  GNU General Public License for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with this program; if not, write to the Free Software
25  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26  MA 02110-1301, USA
27  */
28 
29 #ifndef FELTTYPECONVERSION_H_
30 #define FELTTYPECONVERSION_H_
31 
32 #include "FeltConstants.h"
33 #include <boost/date_time/posix_time/posix_time_types.hpp>
34 
35 namespace felt
36 {
37 template<typename T>
38 T get(word w)
39 {
40  return (T) w;
41 }
42 
43 boost::posix_time::ptime parseTime(const word * data);
44 
45 boost::posix_time::ptime parseTimeNoThrow(const word * data);
46 
47 
48 }
49 
50 #endif /*FELTTYPECONVERSION_H_*/
Definition: FeltConstants.h:35
boost::posix_time::ptime parseTimeNoThrow(const word *data)
boost::posix_time::ptime parseTime(const word *data)
short int word
A felt block "word" - 2 bytes.
Definition: FeltConstants.h:39