OOPS
StateInfo.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 OOPS_BASE_STATEINFO_H_
12
#define OOPS_BASE_STATEINFO_H_
13
14
#include <string>
15
16
#include "eckit/config/Configuration.h"
17
#include "
oops/base/PostBase.h
"
18
#include "oops/util/DateTime.h"
19
#include "oops/util/Logger.h"
20
21
namespace
oops
{
22
23
/// Handles writing-out of forecast fields.
24
/*!
25
* Write out forecast fields.
26
*/
27
28
template
<
typename
FLDS>
class
StateInfo
:
public
PostBase
<FLDS> {
29
public
:
30
StateInfo
(
const
std::string sgrep,
const
eckit::Configuration & conf):
31
PostBase
<FLDS>(conf),
sgrep_
(sgrep) {}
32
StateInfo
(
const
std::string sgrep,
const
util::Duration & freq):
33
PostBase
<FLDS>(freq),
sgrep_
(sgrep) {}
34
~StateInfo
() {}
35
36
private
:
37
const
std::string
sgrep_
;
38
void
doProcessing
(
const
FLDS & xx)
override
{Log::info() <<
sgrep_
<< xx << std::endl;}
39
};
40
41
}
// namespace oops
42
43
#endif
// OOPS_BASE_STATEINFO_H_
PostBase.h
oops::PostBase
Handles post-processing of model fields.
Definition:
PostBase.h:33
oops::StateInfo
Handles writing-out of forecast fields.
Definition:
StateInfo.h:28
oops::StateInfo::StateInfo
StateInfo(const std::string sgrep, const eckit::Configuration &conf)
Definition:
StateInfo.h:30
oops::StateInfo::~StateInfo
~StateInfo()
Definition:
StateInfo.h:34
oops::StateInfo::StateInfo
StateInfo(const std::string sgrep, const util::Duration &freq)
Definition:
StateInfo.h:32
oops::StateInfo::doProcessing
void doProcessing(const FLDS &xx) override
Actual processing.
Definition:
StateInfo.h:38
oops::StateInfo::sgrep_
const std::string sgrep_
Definition:
StateInfo.h:37
oops
The namespace for the main oops code.
Definition:
ErrorCovarianceL95.cc:22
mpas-bundle
oops
src
oops
base
StateInfo.h
Generated on Wed Sep 8 2021 17:07:19 for OOPS by
1.9.1