CommonOptions.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/CommonOptions.h
10 
11 #ifndef __Pulsar_CommonOptions_h
12 #define __Pulsar_CommonOptions_h
13 
14 #include "Pulsar/Application.h"
15 
16 namespace Pulsar {
17 
18  class Interpreter;
19 
21  class CommonOptions : public Application::Options
22  {
23  public:
24 
27 
29  virtual std::string get_usage ();
30 
32  virtual std::string get_options ();
33 
35  virtual bool parse (char code, const std::string& arg);
36 
38  virtual void process (Archive*);
39 
40  private:
41 
42  bool tscrunch, fscrunch, pscrunch;
43 
44  };
45 
46 }
47 
48 #endif
virtual std::string get_usage()
Additional usage information implemented by derived classes.
Definition: CommonOptions.C:21
The primary interface to pulsar observational data.
Definition: Archive.h:45
virtual std::string get_options()
Additional getopt options.
Definition: CommonOptions.C:30
CommonOptions()
Default constructor.
Definition: CommonOptions.C:13
virtual bool parse(char code, const std::string &arg)
Parse a non-standard command.
Definition: CommonOptions.C:36
Defines the PSRCHIVE library.
Definition: CalSource.h:17
virtual void process(Archive *)
Preprocessing tasks implemented by partially derived classes.
Definition: CommonOptions.C:60

Generated using doxygen 1.8.17