MI - Fimex
CDMOverlay.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Fimex, CDMOverlay.h
3  *
4  * (C) Copyright 2012, met.no
5  *
6  * Project Info: https://wiki.met.no/fimex/start
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21  * USA.
22  *
23  * Created on: Aug 28, 2012
24  * Author: Alexander Bürger
25  */
26 
27 #ifndef fimex_CDMOverlay_H
28 #define fimex_CDMOverlay_H 1
29 
30 #include "fimex/CDMReader.h"
32 #include "fimex/Data.h"
33 
34 namespace MetNoFimex {
35 
36 struct CDMOverlayPrivate;
37 
48 class CDMOverlay : public CDMReader {
49 public:
53  CDMOverlay(boost::shared_ptr<CDMReader> base, boost::shared_ptr<CDMReader> top,
54  int gridInterpolationMethod = MIFI_INTERPOL_BILINEAR, bool keepOuterVariables = false);
55 
57  virtual boost::shared_ptr<Data> getDataSlice(const std::string &varName, std::size_t unLimDimPos);
58 
59 private:
61 };
62 
63 typedef boost::shared_ptr<CDMOverlay> CDMOverlayPtr;
64 
65 } // namespace MetNoFimex
66 
67 #endif /* fimex_CDMOverlay_H */
basic_string< char > string
boost::shared_ptr< CDMOverlay > CDMOverlayPtr
Definition: CDMOverlay.h:63
CDMOverlay(boost::shared_ptr< CDMReader > base, boost::shared_ptr< CDMReader > top, int gridInterpolationMethod=MIFI_INTERPOL_BILINEAR, bool keepOuterVariables=false)
virtual boost::shared_ptr< Data > getDataSlice(const std::string &varName, std::size_t unLimDimPos)
virtual DataPtr getDataSlice(const std::string &varName, size_t unLimDimPos)=0
data-reading function to be called from the CDMWriter
Definition: CDMOverlay.h:48
Definition: C_CDMReader.h:35
Basic interface for CDM reading and manipulation classes.
Definition: CDMReader.h:53
Definition: mifi_constants.h:68