IODA Bundle
CompactTool.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 CompactTool_H
11
#define CompactTool_H
12
13
#include "
odc/tools/Tool.h
"
14
15
namespace
odc
{
16
namespace
tool {
17
18
class
CompactTool
:
public
Tool
{
19
public
:
20
CompactTool
(
int
argc
,
char
*
argv
[]);
21
22
void
run
();
23
24
static
void
help
(std::ostream &o)
25
{ o <<
"Tries to compress a file"
; }
26
27
static
void
usage
(
const
std::string&
name
, std::ostream &o)
28
{ o <<
name
<<
" <input.odb> <output.odb>"
; }
29
30
private
:
31
// No copy allowed
32
33
CompactTool
(
const
CompactTool
&);
34
CompactTool
&
operator=
(
const
CompactTool
&);
35
};
36
37
template
<>
struct
ExperimentalTool
<
CompactTool
> {
enum
{
experimental
=
true
}; };
38
39
}
// namespace tool
40
}
// namespace odc
41
42
#endif
Tool.h
odc::tool::CommandLineParser::argv
char ** argv()
Definition:
CommandLineParser.h:53
odc::tool::CommandLineParser::argc
int argc()
Definition:
CommandLineParser.cc:64
odc::tool::CompactTool
Definition:
CompactTool.h:18
odc::tool::CompactTool::help
static void help(std::ostream &o)
Definition:
CompactTool.h:24
odc::tool::CompactTool::CompactTool
CompactTool(const CompactTool &)
odc::tool::CompactTool::CompactTool
CompactTool(int argc, char *argv[])
Definition:
CompactTool.cc:24
odc::tool::CompactTool::run
void run()
Definition:
CompactTool.cc:26
odc::tool::CompactTool::operator=
CompactTool & operator=(const CompactTool &)
odc::tool::CompactTool::usage
static void usage(const std::string &name, std::ostream &o)
Definition:
CompactTool.h:27
odc::tool::Tool
Definition:
Tool.h:27
odc::tool::Tool::name
std::string name()
Definition:
Tool.h:34
odc
Definition:
ColumnInfo.h:23
odc::tool::ExperimentalTool
Definition:
Tool.h:49
odc::tool::ExperimentalTool::experimental
@ experimental
Definition:
Tool.h:49
odc
src
odc
tools
CompactTool.h
Generated on Fri Aug 20 2021 11:49:02 for IODA Bundle by
1.9.1