FV3 Bundle
Run.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_RUNS_RUN_H_
12 #define OOPS_RUNS_RUN_H_
13 
14 #include <boost/scoped_ptr.hpp>
15 
16 #include "eckit/config/YAMLConfiguration.h"
17 #include "eckit/runtime/Main.h"
18 #include "oops/util/Timer.h"
19 
20 namespace oops {
21  class Application;
22 
23 /*!
24  * Run encapsulates one OOPS run.
25  */
26 
27 // -----------------------------------------------------------------------------
28 
29 class Run : public eckit::Main {
30  public:
31  Run(int argc, char** argv);
32  virtual ~Run();
33  void execute(const Application &);
34 
35  protected:
36  const eckit::Configuration & config() const {return *config_;}
37 
38  private:
39  boost::scoped_ptr<const eckit::YAMLConfiguration> config_;
40  boost::scoped_ptr<util::Timer> timer_;
41 };
42 
43 // -----------------------------------------------------------------------------
44 
45 } // namespace oops
46 #endif // OOPS_RUNS_RUN_H_
Run(int argc, char **argv)
Definition: Run.cc:32
The namespace for the main oops code.
void execute(const Application &)
Definition: Run.cc:59
boost::scoped_ptr< const eckit::YAMLConfiguration > config_
Definition: Run.h:39
Run encapsulates one OOPS run.
Definition: Run.h:29
virtual ~Run()
Definition: Run.cc:53
boost::scoped_ptr< util::Timer > timer_
Definition: Run.h:40
const eckit::Configuration & config() const
Definition: Run.h:36