FV3 Bundle
GeometryQG.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef QG_MODEL_GEOMETRYQG_H_
12 #define QG_MODEL_GEOMETRYQG_H_
13 
14 #include <ostream>
15 #include <string>
16 #include <vector>
17 
19 #include "model/QgFortran.h"
20 #include "oops/util/ObjectCounter.h"
21 #include "oops/util/Printable.h"
22 
23 namespace eckit {
24  class Configuration;
25 }
26 
27 namespace qg {
28 class GeometryQGIterator;
29 
30 // -----------------------------------------------------------------------------
31 /// GeometryQG handles geometry for QG model.
32 
33 class GeometryQG : public util::Printable,
34  private util::ObjectCounter<GeometryQG> {
35  public:
36  static const std::string classname() {return "qg::GeometryQG";}
37 
38  explicit GeometryQG(const eckit::Configuration &);
39  GeometryQG(const GeometryQG &);
40  ~GeometryQG();
41 
42  F90geom & toFortran() {return keyGeom_;}
43  const F90geom & toFortran() const {return keyGeom_;}
44 
45  GeometryQGIterator begin() const;
46  GeometryQGIterator end() const;
47 
48  private:
49  GeometryQG & operator=(const GeometryQG &);
50  void print(std::ostream &) const;
52 };
53 // -----------------------------------------------------------------------------
54 
55 } // namespace qg
56 
57 #endif // QG_MODEL_GEOMETRYQG_H_
GeometryQG(const eckit::Configuration &)
Definition: GeometryQG.cc:18
F90geom keyGeom_
Definition: GeometryQG.h:51
void print(std::ostream &) const
Definition: GeometryQG.cc:43
GeometryQG & operator=(const GeometryQG &)
const F90geom & toFortran() const
Definition: GeometryQG.h:43
static const std::string classname()
Definition: GeometryQG.h:36
int F90geom
Definition: QgFortran.h:27
F90geom & toFortran()
Definition: GeometryQG.h:42
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:33
GeometryQGIterator begin() const
Definition: GeometryQG.cc:32
The namespace for the qg model.
GeometryQGIterator end() const
Definition: GeometryQG.cc:36