IODA Bundle
Variables/Transforms/TransformBuilder.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2020 NOAA/NWS/NCEP/EMC
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 #pragma once
9 
10 #include <memory.h>
11 
12 #include "eckit/config/LocalConfiguration.h"
13 
14 #include "Transform.h"
15 
16 
17 namespace Ingester
18 {
19 
20  /// \brief Convenience class used to make new transforms from config file data.
21  class TransformBuilder
22  {
23  public:
24  /// \brief Create a transform for the config data given. Used by makeTransforms.
25  /// \param conf ECKit config data for the tranform.
26  static std::shared_ptr<Transform> makeTransform(const eckit::Configuration& conf);
27 
28  /// \brief Create a transforms for the config data given.
29  /// \param conf ECKit config data for the list of transforms.
30  static Transforms makeTransforms(const eckit::Configuration& conf);
31  };
32 } // namespace Ingester
static std::shared_ptr< Transform > makeTransform(const eckit::Configuration &conf)
Create a transform for the config data given. Used by makeTransforms.
static Transforms makeTransforms(const eckit::Configuration &conf)
Create a transforms for the config data given.
std::vector< std::shared_ptr< Transform > > Transforms