IODA Bundle
MDSetTool.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 #ifndef MDSetTool_H
11 #define MDSetTool_H
12 
13 #include "odc/tools/Tool.h"
14 #include "eckit/sql/SQLTypedefs.h"
15 
16 namespace odc {
17 namespace tool {
18 
19 class MDSetTool : public Tool {
20 public:
21  MDSetTool (int argc, char *argv[]);
22 
23  void run();
24 
25  static void help(std::ostream &o);
26 
27  static void usage(const std::string& name, std::ostream &o);
28 
29 private:
30 // No copy allowed
31 
34 
35  void parseUpdateList(const std::string& s,
36  std::vector<std::string>& columns,
37  std::vector<std::string>& types,
38  std::vector<std::string>& values,
39  std::vector<eckit::sql::BitfieldDef>& bitfieldDefs);
40 };
41 
42 } // namespace tool
43 } // namespace odc
44 
45 #endif
46 
MDSetTool(const MDSetTool &)
static void help(std::ostream &o)
Definition: MDSetTool.cc:32
void parseUpdateList(const std::string &s, std::vector< std::string > &columns, std::vector< std::string > &types, std::vector< std::string > &values, std::vector< eckit::sql::BitfieldDef > &bitfieldDefs)
Definition: MDSetTool.cc:126
static void usage(const std::string &name, std::ostream &o)
Definition: MDSetTool.cc:37
MDSetTool & operator=(const MDSetTool &)
MDSetTool(int argc, char *argv[])
Definition: MDSetTool.cc:47
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23