IODA Bundle
MergeTool.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 MergeTool_H
12 #define MergeTool_H
13 
14 #include "eckit/filesystem/PathName.h"
15 #include "odc/tools/Tool.h"
16 
17 namespace odc {
18 namespace tool {
19 
20 class MergeTool : public Tool {
21 public:
22  MergeTool (int argc, char *argv[]);
23 
24  void run();
25 
26  static void help(std::ostream &o);
27  static void usage(const std::string& name, std::ostream &o);
28 
29  static void merge(const std::vector<eckit::PathName>& inputFiles, const eckit::PathName& outputFileName);
30  static void merge(const std::vector<eckit::PathName>& inputFiles, const std::vector<std::string>& sqls, const eckit::PathName& outputFileName);
31 
32 private:
33 // No copy allowed
34 
37 
38  static char* dummyArgv_[];
39 
40  std::vector<eckit::PathName> inputFiles_;
41  std::vector<std::string> sql_;
42  eckit::PathName outputFile_;
44 
45 };
46 
47 } // namespace tool
48 } // namespace odc
49 
50 #endif
static void usage(const std::string &name, std::ostream &o)
Definition: MergeTool.cc:28
std::vector< std::string > sql_
Definition: MergeTool.h:41
MergeTool(int argc, char *argv[])
Definition: MergeTool.cc:37
static char * dummyArgv_[]
Definition: MergeTool.h:38
static void merge(const std::vector< eckit::PathName > &inputFiles, const eckit::PathName &outputFileName)
eckit::PathName outputFile_
Definition: MergeTool.h:42
static void help(std::ostream &o)
Definition: MergeTool.cc:24
static void merge(const std::vector< eckit::PathName > &inputFiles, const std::vector< std::string > &sqls, const eckit::PathName &outputFileName)
MergeTool(const MergeTool &)
MergeTool & operator=(const MergeTool &)
std::vector< eckit::PathName > inputFiles_
Definition: MergeTool.h:40
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23