IODA Bundle
ToolRunnerApplication.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
/// \file ToolRunnerApplication.h
12
///
13
/// @author Piotr Kuchta, ECMWF, Feb 2009
14
15
#ifndef ToolRunnerApplication_H
16
#define ToolRunnerApplication_H
17
18
#include "
odc/ODBApplication.h
"
19
20
namespace
odc
{
21
namespace
tool {
22
23
class
Tool;
24
25
class
ToolRunnerApplication
:
public
ODBApplication
{
26
public
:
27
ToolRunnerApplication
(
int
argc,
char
**argv,
bool
createCommandLineTool =
true
,
bool
deleteTool=
true
);
28
ToolRunnerApplication
(
odc::tool::Tool
&
tool
,
int
argc,
char
**argv);
29
~ToolRunnerApplication
();
30
31
void
tool
(
odc::tool::Tool
*);
32
33
void
run
();
34
int
printHelp
(std::ostream &out);
35
private
:
36
odc::tool::Tool
*
tool_
;
37
bool
deleteTool_
;
38
};
39
40
}
// namespace tool
41
}
// namespace odc
42
43
#endif
ODBApplication.h
odc::tool::ODBApplication
Definition:
ODBApplication.h:24
odc::tool::Tool
Definition:
Tool.h:27
odc::tool::ToolRunnerApplication
Definition:
ToolRunnerApplication.h:25
odc::tool::ToolRunnerApplication::ToolRunnerApplication
ToolRunnerApplication(int argc, char **argv, bool createCommandLineTool=true, bool deleteTool=true)
Definition:
ToolRunnerApplication.cc:26
odc::tool::ToolRunnerApplication::tool
void tool(odc::tool::Tool *)
Definition:
ToolRunnerApplication.cc:43
odc::tool::ToolRunnerApplication::printHelp
int printHelp(std::ostream &out)
Definition:
ToolRunnerApplication.cc:66
odc::tool::ToolRunnerApplication::run
void run()
Definition:
ToolRunnerApplication.cc:48
odc::tool::ToolRunnerApplication::tool_
odc::tool::Tool * tool_
Definition:
ToolRunnerApplication.h:36
odc::tool::ToolRunnerApplication::deleteTool_
bool deleteTool_
Definition:
ToolRunnerApplication.h:37
odc::tool::ToolRunnerApplication::~ToolRunnerApplication
~ToolRunnerApplication()
Definition:
ToolRunnerApplication.cc:38
odc
Definition:
ColumnInfo.h:23
odc
src
odc
tools
ToolRunnerApplication.h
Generated on Fri Aug 20 2021 11:49:12 for IODA Bundle by
1.9.1