IODA Bundle
LSTool.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 LSTool_H
12 #define LSTool_H
13 
14 #include "odc/tools/Tool.h"
15 
16 namespace odc {
17 namespace tool {
18 
19 class LSTool : public Tool {
20 public:
21  LSTool (int argc, char *argv[]);
22 
23  void run();
24 
25  static void help(std::ostream &o)
26  { o << "Shows file's contents"; }
27 
28  static void usage(const std::string& name, std::ostream &o)
29  { o << name << " [-o <output-file>] <file-name>" << std::endl << std::endl; }
30 
31  unsigned long long printData(const std::string &db, std::ostream &out);
32 
33 private:
34 // No copy allowed
35  LSTool(const LSTool&);
37 
38  static const std::string nullString;
39 };
40 
41 } // namespace tool
42 } // namespace odc
43 
44 #endif
static void usage(const std::string &name, std::ostream &o)
Definition: LSTool.h:28
static const std::string nullString
Definition: LSTool.h:38
LSTool & operator=(const LSTool &)
unsigned long long printData(const std::string &db, std::ostream &out)
Definition: LSTool.cc:29
static void help(std::ostream &o)
Definition: LSTool.h:25
LSTool(int argc, char *argv[])
Definition: LSTool.cc:22
LSTool(const LSTool &)
std::string name()
Definition: Tool.h:34
Definition: ColumnInfo.h:23