IODA Bundle
ODAHeaderTool.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 HeaderTool_H
11 #define HeaderTool_H
12 
13 #include "Tool.h"
14 
15 namespace odc {
16 namespace tool {
17 
18 class HeaderTool : public Tool {
19 public:
20  HeaderTool (int argc, char *argv[]);
21 
22  void run();
23 
24  static void help(std::ostream &o)
25  {
26  o << "Shows header(s) and metadata(s) of file";
27  }
28 
29  static void usage(const std::string& name, std::ostream &o)
30  {
31  o << name << " [-offsets] [-ddl] [-table <table-name-in-the-generated-ddl>] <file-name>";
32  }
33 
34 private:
35 // No copy allowed
38 
39  std::string readFile(const std::string &fileName);
40 };
41 
42 } // namespace tool
43 } // namespace odc
44 
45 #endif
HeaderTool(const HeaderTool &)
HeaderTool(int argc, char *argv[])
std::string readFile(const std::string &fileName)
HeaderTool & operator=(const HeaderTool &)
static void help(std::ostream &o)
Definition: ODAHeaderTool.h:24
static void usage(const std::string &name, std::ostream &o)
Definition: ODAHeaderTool.h:29
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23