CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife_zpipe.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SWISSKNIFE_ZPIPE_H_
6 #define CVMFS_SWISSKNIFE_ZPIPE_H_
7 
8 #include <string>
9 
10 #include "swissknife.h"
11 
12 namespace swissknife {
13 
14 class CommandZpipe : public Command {
15  public:
17  virtual std::string GetName() const { return "zpipe"; }
18  virtual std::string GetDescription() const {
19  return "Compresses or decompresses a file using the DEFLATE algorithm.\n"
20  "Input comes on stdin, output goes to stdout.";
21  }
22  virtual ParameterList GetParams() const {
23  ParameterList r;
24  r.push_back(Parameter::Switch('d', "decompress file"));
25  return r;
26  }
27  virtual int Main(const ArgumentList &args);
28 };
29 
30 } // namespace swissknife
31 
32 #endif // CVMFS_SWISSKNIFE_ZPIPE_H_
virtual ParameterList GetParams() const
static Parameter Switch(const char key, const std::string &desc)
Definition: swissknife.h:44
std::vector< Parameter > ParameterList
Definition: swissknife.h:71
virtual std::string GetName() const
virtual int Main(const ArgumentList &args)
virtual std::string GetDescription() const
std::map< char, SharedPtr< std::string > > ArgumentList
Definition: swissknife.h:72