StandardOptions.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/StandardOptions.h
10
11#ifndef __Pulsar_StandardOptions_h
12#define __Pulsar_StandardOptions_h
13
14#include "Pulsar/Application.h"
15
16namespace Pulsar {
17
18 class Interpreter;
19
22 {
23 public:
24
27
29 void process (Archive*);
30
32 Archive* result ();
33
35 virtual void add_job (const std::string& job);
36
38 virtual void add_script (const std::string& job);
39
41 virtual void add_default_job (const std::string& job);
42
44 virtual Interpreter* get_interpreter ();
45
46 private:
47
49 void add_options (CommandLine::Menu&);
50
51 // Preprocessing jobs
52 std::vector<std::string> jobs;
53
54 // Default preprocessing jobs
55 std::vector<std::string> default_jobs;
56
57 // standard interpreter
59
60 // Top of the interpreter stack after executing script
61 Reference::To<Archive> the_result;
62
63 };
64
65}
66
67#endif
Describes application command line options.
Definition Application.h:159
The primary interface to pulsar observational data.
Definition Archive.h:46
Pulsar data processing command language interpreter.
Definition Interpreter.h:52
void process(Archive *)
Preprocess the archive using the standard_shell interpreter.
Definition StandardOptions.C:50
StandardOptions()
Default constructor.
Definition StandardOptions.C:17
virtual void add_job(const std::string &job)
Add to the jobs.
Definition StandardOptions.C:34
Archive * result()
Return the top of the interpreter stack.
Definition StandardOptions.C:73
virtual void add_default_job(const std::string &job)
Add to the default preprocessing jobs (ignored if jobs are set)
Definition StandardOptions.C:44
virtual void add_script(const std::string &job)
Load a script into the jobs.
Definition StandardOptions.C:39
virtual Interpreter * get_interpreter()
Provide access to the interpreter.
Definition StandardOptions.C:79
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0