IODA Bundle
Tool.cc
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 /// \file Tool.h
12 ///
13 /// @author Piotr Kuchta, ECMWF, Feb 2009
14 
15 #include "odc/tools/Tool.h"
16 
17 #include <ostream>
18 
19 #include "odc/tools/CompactTool.h"
20 #include "odc/tools/CompareTool.h"
21 #include "odc/tools/CountTool.h"
22 #include "odc/tools/IndexTool.h"
24 #include "odc/tools/ImportTool.h"
25 #include "odc/tools/LSTool.h"
26 #include "odc/tools/MDSetTool.h"
27 #include "odc/tools/MergeTool.h"
29 #include "odc/tools/SQLTool.h"
30 #include "odc/tools/SetTool.h"
31 #include "odc/tools/SplitTool.h"
32 #include "odc/tools/ToolFactory.h"
33 #include "odc/tools/XYVTool.h"
34 
35 namespace odc {
36 namespace tool {
37 
39 
40 Tool::Tool(int argc, char **argv)
41 : CommandLineParser(argc, argv)
42 {}
43 
45 : CommandLineParser(clp)
46 {}
47 
49 {
50  static ToolFactory<CompactTool> compact("compact");
51  static ToolFactory<CompareTool> compare("compare");
52  static ToolFactory<CountTool> countTool("count");
53  static ToolFactory<IndexTool> indexTool("index");
54  static ToolFactory<FixedSizeRowTool> fixedSizeRow("fixrowsize");
55  static ToolFactory<ImportTool> import("import");
56  static ToolFactory<LSTool> lsTool("ls");
57  static ToolFactory<MDSetTool> mdset("mdset");
58  static ToolFactory<MergeTool> mergeTool("merge");
59  static ToolFactory<HeaderTool> odaHeader("header");
60  static ToolFactory<SQLTool> sqlTool("sql");
61  static ToolFactory<SetTool> set("set");
62  static ToolFactory<SplitTool> split("split");
63  static ToolFactory<XYVTool> xyvTool("xyv");
64 }
65 
66 } // namespace tool
67 } // namespace odc
68 
static void registerTools()
Definition: Tool.cc:48
Tool(int argc, char **argv)
Definition: Tool.cc:40
virtual ~Tool()
Definition: Tool.cc:38
Definition: ColumnInfo.h:23