MI - Fimex
mifi_cdm_reader.h
Go to the documentation of this file.
1 /*
2  * Fimex, mifi_cdm_reader.h
3  *
4  * (C) Copyright 2009, 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: Oct 28, 2009
24  * Author: Heiko Klein
25  */
26 
27 #ifndef MIFI_CDM_READER_H_
28 #define MIFI_CDM_READER_H_
29 
30 #include <boost/shared_ptr.hpp>
32 #include "fimex/SliceBuilder.h"
33 
34 namespace MetNoFimex {
35  class CDMReader;
36  class CoordinateSystem;
37 // class SliceBuilder;
38 }
39 
48 public:
49  mifi_cdm_reader(boost::shared_ptr<MetNoFimex::CDMReader> reader) : reader_(reader) {
50  csVec_ = MetNoFimex::listCoordinateSystems(reader_);
51  }
52  boost::shared_ptr<MetNoFimex::CDMReader> reader_;
54 };
55 
61 public:
62  mifi_slicebuilder(boost::shared_ptr<MetNoFimex::SliceBuilder> sb, boost::shared_ptr<const MetNoFimex::CoordinateSystem> cs) : sb_(sb), cs_(cs) {}
63  mifi_slicebuilder(boost::shared_ptr<MetNoFimex::SliceBuilder> sb) : sb_(sb) {}
64  boost::shared_ptr<MetNoFimex::SliceBuilder> sb_;
65  boost::shared_ptr<const MetNoFimex::CoordinateSystem> cs_;
66 };
67 
68 
69 #endif /* MIFI_CDM_READER_H_ */
boost::shared_ptr< MetNoFimex::SliceBuilder > sb_
Definition: mifi_cdm_reader.h:64
Definition: mifi_cdm_reader.h:60
mifi_slicebuilder(boost::shared_ptr< MetNoFimex::SliceBuilder > sb, boost::shared_ptr< const MetNoFimex::CoordinateSystem > cs)
Definition: mifi_cdm_reader.h:62
boost::shared_ptr< MetNoFimex::CDMReader > reader_
Definition: mifi_cdm_reader.h:52
Definition: mifi_cdm_reader.h:47
STL class.
Definition: C_CDMReader.h:35
std::vector< boost::shared_ptr< const CoordinateSystem > > listCoordinateSystems(boost::shared_ptr< CDMReader > reader)
mifi_cdm_reader(boost::shared_ptr< MetNoFimex::CDMReader > reader)
Definition: mifi_cdm_reader.h:49
boost::shared_ptr< const MetNoFimex::CoordinateSystem > cs_
Definition: mifi_cdm_reader.h:65
mifi_slicebuilder(boost::shared_ptr< MetNoFimex::SliceBuilder > sb)
Definition: mifi_cdm_reader.h:63
std::vector< boost::shared_ptr< const MetNoFimex::CoordinateSystem > > csVec_
Definition: mifi_cdm_reader.h:53