FV3 Bundle
ioda/src/ioda/Locations.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017 UCAR
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  */
7 
8 #ifndef IODA_LOCATIONS_H_
9 #define IODA_LOCATIONS_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include "Fortran.h"
15 #include "ObsSpace.h"
16 #include "oops/util/ObjectCounter.h"
17 #include "oops/util/Printable.h"
18 
19 namespace ioda {
20 
21 /// Locations class to handle locations for IODA.
22 
23 class Locations : public util::Printable,
24  private util::ObjectCounter<Locations> {
25  public:
26  static const std::string classname() {return "ioda::Locations";}
27 
28  explicit Locations(const F90locs key): keyLoc_(key) {}
29  explicit Locations(const eckit::Configuration &);
30  ~Locations();
31 
32  int nobs() const;
33  int toFortran() const {return keyLoc_;}
34 
35  private:
36  void print(std::ostream & os) const;
38 };
39 
40 } // namespace ioda
41 
42 #endif // IODA_LOCATIONS_H_
Locations(const F90locs key)
int nobs() const
Definition: Locations.cc:89
Locations class to handle locations for IODA.
void print(std::ostream &os) const
Definition: Locations.cc:97
static const std::string classname()