IODA Bundle
IndexTool.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 /// @author Piotr Kuchta, ECMWF, Oct 2015
12 
13 #ifndef IndexTool_H
14 #define IndexTool_H
15 
16 #include "odc/Partition.h"
17 #include "odc/Partitions.h"
18 
19 namespace odc {
20 namespace tool {
21 
22 typedef std::vector<std::pair<eckit::Offset,eckit::Length> > BlockOffsets;
23 typedef unsigned long long ullong;
24 
25 class IndexTool : public Tool {
26 public:
27  IndexTool (int argc, char *argv[]);
28 
29  void run();
30 
31  static void help(std::ostream &o);
32 
33  static void usage(const std::string& name, std::ostream &o);
34 
35 private:
36 // No copy allowed
39 };
40 
41 } // namespace tool
42 } // namespace odc
43 
44 #endif
static void usage(const std::string &name, std::ostream &o)
Definition: IndexTool.cc:34
IndexTool(int argc, char *argv[])
Definition: IndexTool.cc:27
IndexTool & operator=(const IndexTool &)
static void help(std::ostream &o)
Definition: IndexTool.cc:29
IndexTool(const IndexTool &)
std::string name()
Definition: Tool.h:34
std::vector< std::pair< eckit::Offset, eckit::Length > > BlockOffsets
Definition: IndexTool.h:22
unsigned long long ullong
Definition: IndexTool.h:23
Definition: ColumnInfo.h:23