GeneratorInterpreter.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Util/resources/Pulsar/GeneratorInterpreter.h
10 
11 #ifndef __Pulsar_GeneratorInterpreter_h
12 #define __Pulsar_GeneratorInterpreter_h
13 
14 #include "Pulsar/Generator.h"
15 #include "CommandParser.h"
16 
17 namespace Pulsar
18 {
19 
21  class Generator::Interpreter : public CommandParser
22  {
23 
24  public:
25 
27 
28  ~Interpreter ();
29 
31  std::string polyco (const std::string& args);
32 
34  std::string tempo2 (const std::string& args);
35 
37  std::string empty ();
38 
39  static Configuration::Parameter<Generator*>& get_option ();
40 
41  protected:
42 
43  std::string current;
44 
45  };
46 
47 }
48 
49 #endif
@ Pulsar
A pulsar.
Definition: Types.h:63
virtual Generator * clone() const =0
Return a new, copy constructed instance of self.
std::string polyco(const std::string &args)
Install the interative Gaussian baseline algorithm.
Definition: GeneratorInterpreter.C:48
A convenient exception handling class.
Definition: Error.h:54
static Generator * get_default()
Return a pointer to a new Generator of the default derived type.
Definition: Generator_default.C:58
std::string tempo2(const std::string &args)
Install the default baseline algorithm (minimum window)
Definition: GeneratorInterpreter.C:61
static Generator * factory(const Parameters *)
Return a pointer to a new Generator that can best handle the parameters.
Definition: Generator_factory.C:63
Uses tempo orediction mode to produce polynomial ephemerides (polyco)
Definition: Predict.h:26
@ Input
Clone the input predictor.
Definition: Predictor.h:41
Generator of functions that predict pulse phase.
Definition: Generator.h:31
Closes a FILE* when it goes out of scope.
Definition: FilePtr.h:18
Functions that predict pulse phase.
Definition: Predictor.h:33
A configurable parameter.
Definition: Configuration.h:47
static std::vector< std::string > & get_keywords()
Return a list of keywords that are specific to tempo2.
Definition: T2Generator.C:40
@ Default
Generate a new predictor using the default generator.
Definition: Predictor.h:43
std::string empty()
Return the configuration string of the current baseline policy.
Definition: GeneratorInterpreter.C:80
const std::string get_message() const
Get the error message.
Definition: Error.C:133
Generates a Tempo2::Predictor.
Definition: T2Generator.h:26
Storage of pulsar parameters used to create a Predictor.
Definition: Parameters.h:28
Interprets configuration strings into the default generator.
Definition: GeneratorInterpreter.h:26
@ Ephemeris
Generate a new predictor based on the input ephemeris.
Definition: Predictor.h:45

Generated using doxygen 1.8.17