FV3 Bundle
ufo/src/ufo/ObsBias.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017-2018 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 UFO_OBSBIAS_H_
9 #define UFO_OBSBIAS_H_
10 
11 #include <iostream>
12 #include <string>
13 #include <vector>
14 #include <boost/noncopyable.hpp>
15 
16 #include "oops/util/ObjectCounter.h"
17 #include "oops/util/Printable.h"
18 
19 namespace eckit {
20  class Configuration;
21 }
22 
23 namespace ufo {
24  class ObsBiasIncrement;
25 
26 /// Class to handle observation bias parameters.
27 
28 // -----------------------------------------------------------------------------
29 
30 class ObsBias : public util::Printable,
31  private boost::noncopyable,
32  private util::ObjectCounter<ObsBias> {
33  public:
34  static const std::string classname() {return "ufo::ObsBias";}
35 
36  explicit ObsBias(const eckit::Configuration &) {}
37  ObsBias(const ObsBias &, const bool) {}
38  ~ObsBias() {}
39 
41 
42 /// I/O and diagnostics
43  void read(const eckit::Configuration &) {}
44  void write(const eckit::Configuration &) const {}
45  double norm() const {return 0;}
46 
47  int & toFortran() {return keyBias_;}
48  const int & toFortran() const {return keyBias_;}
49 
50  private:
51  void print(std::ostream &) const {}
52  int keyBias_;
53 };
54 
55 // -----------------------------------------------------------------------------
56 
57 } // namespace ufo
58 
59 #endif // UFO_OBSBIAS_H_
ObsBias(const ObsBias &, const bool)
const int & toFortran() const
void print(std::ostream &) const
void write(const eckit::Configuration &) const
ObsBias & operator+=(const ObsBiasIncrement &)
ObsBias(const eckit::Configuration &)
static const std::string classname()
double norm() const
Class to handle observation bias parameters.
void read(const eckit::Configuration &)
I/O and diagnostics.