IODA Bundle
CompareTool.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 CompareTool_H
12 #define CompareTool_H
13 
14 #include "odc/tools/Tool.h"
15 
16 namespace odc {
17 
18 class RowsReaderIterator;
19 
20 namespace tool {
21 
22 class CompareTool : public Tool {
23 public:
24  CompareTool (int argc, char *argv[]);
25 
26  void run();
27 
28  static void help(std::ostream &o)
29  {
30  o << "Compares two ODB files";
31  }
32 
33  static void usage(const std::string& name, std::ostream &o)
34  {
35  o << name << " [-excludeColumns <list-of-columns>] [-excludeColumnsTypes <list-of-columns>] [-dontCheckMissing] <file1.odb> <file2.odb>";
36  }
37 
38 private:
39 // No copy allowed
40 
43 
44  static char* dummyArgv_[];
45 
46  eckit::PathName* file1_;
47  eckit::PathName* file2_;
48 
49  odc::RowsReaderIterator* reader1_;
50  odc::RowsReaderIterator* reader2_;
51 
52 };
53 
54 } // namespace tool
55 } // namespace odc
56 
57 #endif
odc::RowsReaderIterator * reader1_
Definition: CompareTool.h:49
CompareTool(const CompareTool &)
static void usage(const std::string &name, std::ostream &o)
Definition: CompareTool.h:33
CompareTool(int argc, char *argv[])
Definition: CompareTool.cc:26
static char * dummyArgv_[]
Definition: CompareTool.h:44
static void help(std::ostream &o)
Definition: CompareTool.h:28
CompareTool & operator=(const CompareTool &)
eckit::PathName * file1_
Definition: CompareTool.h:46
odc::RowsReaderIterator * reader2_
Definition: CompareTool.h:50
eckit::PathName * file2_
Definition: CompareTool.h:47
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23