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
"
23
#include "
odc/tools/FixedSizeRowTool.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
"
28
#include "
odc/tools/ODAHeaderTool.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
38
Tool::~Tool
() {}
39
40
Tool::Tool
(
int
argc,
char
**argv)
41
:
CommandLineParser
(argc, argv)
42
{}
43
44
Tool::Tool
(
const
CommandLineParser
& clp)
45
:
CommandLineParser
(clp)
46
{}
47
48
void
Tool::registerTools
()
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
CompactTool.h
CompareTool.h
CountTool.h
FixedSizeRowTool.h
ImportTool.h
IndexTool.h
LSTool.h
MDSetTool.h
MergeTool.h
ODAHeaderTool.h
SQLTool.h
SetTool.h
SplitTool.h
Tool.h
ToolFactory.h
XYVTool.h
odc::tool::CommandLineParser
Definition:
CommandLineParser.h:27
odc::tool::ToolFactory
Definition:
ToolFactory.h:50
odc::tool::Tool::registerTools
static void registerTools()
Definition:
Tool.cc:48
odc::tool::Tool::Tool
Tool(int argc, char **argv)
Definition:
Tool.cc:40
odc::tool::Tool::~Tool
virtual ~Tool()
Definition:
Tool.cc:38
compare
Definition:
build/bin/compare.py:1
odc
Definition:
ColumnInfo.h:23
odc
src
odc
tools
Tool.cc
Generated on Fri Aug 20 2021 11:49:12 for IODA Bundle by
1.9.1