IODA Bundle
XYVTool.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 XYVTool_H
12 #define XYVTool_H
13 
14 #include <ostream>
15 
16 #include "Tool.h"
17 
18 namespace odc {
19 namespace tool {
20 
21 class XYVTool : public Tool {
22 
23 public:
24  XYVTool(int argc, char **argv);
25  ~XYVTool();
26 
27  static void help(std::ostream &o)
28  { o << "Creates XYV representation of file for displaying in a graphics program"; }
29 
30  static void usage(const std::string& name, std::ostream &o)
31  { o << name << " <input-file.odb> <value-column> <output-file.odb>"; }
32 
33  virtual void run();
34 };
35 
36 template <> struct ExperimentalTool<XYVTool> { enum { experimental = true }; };
37 
38 } // namespace tool
39 } // namespace odc
40 
41 #endif
42 
std::string name()
Definition: Tool.h:34
static void usage(const std::string &name, std::ostream &o)
Definition: XYVTool.h:30
virtual void run()
Definition: XYVTool.cc:29
XYVTool(int argc, char **argv)
Definition: XYVTool.cc:25
static void help(std::ostream &o)
Definition: XYVTool.h:27
Definition: ColumnInfo.h:23