IODA Bundle
SetTool.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2012 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 SetTool_H
12 #define SetTool_H
13 
14 #include "Tool.h"
15 
16 namespace odc {
17 namespace tool {
18 
19 class SetTool : public Tool {
20 public:
21  SetTool (int argc, char *argv[]);
22 
23  void run();
24 
25  static void help(std::ostream &o)
26  { o << "Creates a new file setting columns to given values"; }
27 
28  static void usage(const std::string& name, std::ostream &o)
29  { o << name << " <update-list> <input.odb> <output.odb>"; }
30 
31 private:
32 // No copy allowed
33 
34  SetTool(const SetTool&);
36 
37  void parseUpdateList(std::string s, std::vector<std::string>& columns, std::vector<double>& values);
38 };
39 
40 } // namespace tool
41 } // namespace odc
42 
43 #endif
44 
static void help(std::ostream &o)
Definition: SetTool.h:25
SetTool(const SetTool &)
static void usage(const std::string &name, std::ostream &o)
Definition: SetTool.h:28
SetTool(int argc, char *argv[])
Definition: SetTool.cc:29
void parseUpdateList(std::string s, std::vector< std::string > &columns, std::vector< double > &values)
Definition: SetTool.cc:64
SetTool & operator=(const SetTool &)
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23