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
16namespace Pulsar {
17
18 class Interpreter;
19
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
Describes application command line options.
Definition Application.h:159
The primary interface to pulsar observational data.
Definition Archive.h:46
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
virtual std::string get_usage()
Additional usage information implemented by derived classes.
Definition CommonOptions.C:21
virtual void process(Archive *)
Preprocessing tasks implemented by partially derived classes.
Definition CommonOptions.C:60
Pulsar data processing command language interpreter.
Definition Interpreter.h:52
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0