IODA Bundle
FixedSizeRowTool.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 #ifndef FixedSizeRowTool_H
12 #define FixedSizeRowTool_H
13 
14 #include "odc/tools/Tool.h"
15 
16 namespace odc {
17 namespace tool {
18 
19 class FixedSizeRowTool : public Tool {
20 public:
21  FixedSizeRowTool (int argc, char *argv[]);
22 
23  void run();
24 
25  static void help(std::ostream &o)
26  { o << "Converts file to a format with fixed size rows"; }
27 
28  static void usage(const std::string& name, std::ostream &o)
29  { o << name << " <input.odb> <output.odb>"; }
30 
31 private:
32 // No copy allowed
33 
36 };
37 
38 template <> struct ExperimentalTool<FixedSizeRowTool> { enum { experimental = true }; };
39 
40 } // namespace tool
41 } // namespace odc
42 
43 #endif
FixedSizeRowTool(int argc, char *argv[])
FixedSizeRowTool(const FixedSizeRowTool &)
static void help(std::ostream &o)
FixedSizeRowTool & operator=(const FixedSizeRowTool &)
static void usage(const std::string &name, std::ostream &o)
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23