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 
35 };
36 
37 template <> struct ExperimentalTool<CompactTool> { enum { experimental = true }; };
38 
39 } // namespace tool
40 } // namespace odc
41 
42 #endif
static void help(std::ostream &o)
Definition: CompactTool.h:24
CompactTool(const CompactTool &)
CompactTool(int argc, char *argv[])
Definition: CompactTool.cc:24
CompactTool & operator=(const CompactTool &)
static void usage(const std::string &name, std::ostream &o)
Definition: CompactTool.h:27
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23