MI - Fimex
MetGmCDMReader.h
Go to the documentation of this file.
1 #ifndef METGM_CDM_READER_H
2 #define METGM_CDM_READER_H
3 /*
4  * Fimex, MetGmCDMReader.h
5  *
6  * (C) Copyright 2011, met.no
7  *
8  * Project Info: https://wiki.met.no/fimex/start
9  *
10  * This library is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 of the License, or
13  * (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23  * USA.
24  *
25  */
26 
27 #ifndef MIFI_IO_READER_SUPPRESS_DEPRECATED
28 #warning \
29  This header-file is deprecated and \
30  may be removed without further notice at a future date. Please use a \
31  non-deprecated interface with equivalent functionality instead, i.e. \
32  instead of \
33  *CDMReader(file,config) \
34  use \
35  CDMFileReaderFactory::create(MIFI_FILETYPE_*,file,config)
36 #endif
37 
38 
39 // fimex
40 #include "fimex/CDMReader.h"
41 #include "fimex/XMLInput.h"
42 
43 
44 // boost
45 #include <boost/shared_ptr.hpp>
46 
47 namespace MetNoFimex {
48 
49  /* forward declarations */
50  class MetGmCDMReaderImpl;
51 
52  class MetGmCDMReader : public CDMReader
53  {
54  public:
55  MetGmCDMReader(const std::string& metgmsource, const XMLInput& configXML);
57 
58  DataPtr getDataSlice(const std::string& varName, size_t unLimDimPos);
59 
60  private:
61  boost::shared_ptr<MetGmCDMReaderImpl> d_ptr;
62  };
63 
64 } // end namespace
65 
66 #endif // METGM_CDM_READER_H
67 
basic_string< char > string
boost::shared_ptr< Data > DataPtr
Definition: DataDecl.h:39
DataPtr getDataSlice(const std::string &varName, size_t unLimDimPos)
data-reading function to be called from the CDMWriter
Definition: C_CDMReader.h:35
Basic interface for CDM reading and manipulation classes.
Definition: CDMReader.h:53
MetGmCDMReader(const std::string &metgmsource, const XMLInput &configXML)
Definition: XMLInput.h:49
Definition: MetGmCDMReader.h:52