VariableTransformation.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2019 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Pulsar_VariableTransformation_h
10 #define __Pulsar_VariableTransformation_h
11 
12 #include "Pulsar/Archive.h"
13 
14 namespace Pulsar {
15 
17  class VariableTransformation : public Reference::Able
18  {
19 
20  protected:
22  unsigned subint;
23  unsigned chan;
24 
25  mutable std::string description;
26  bool built;
27 
28  public:
29 
32 
34  virtual void set_archive (const Archive* _archive);
35 
37  virtual void set_subint (unsigned _subint);
38 
40  virtual void set_chan (unsigned _chan);
41 
43  virtual Jones<double> get_transformation () = 0;
44 
46  virtual std::string get_description () const { return description; }
47 
49  virtual bool required () const { return true; }
50 
51  };
52 }
53 
54 #endif
virtual Jones< double > get_transformation()=0
Get the transformation.
virtual void set_archive(const Archive *_archive)
Set the Archive for which a tranformation will be computed.
Definition: VariableTransformation.C:19
The primary interface to pulsar observational data.
Definition: Archive.h:45
VariableTransformation()
Default constructor.
Definition: VariableTransformation.C:13
virtual std::string get_description() const
Get the description of the transformation.
Definition: VariableTransformation.h:56
virtual bool required() const
Return true if the transformation is required.
Definition: VariableTransformation.h:59
Defines the PSRCHIVE library.
Definition: CalSource.h:17
virtual void set_subint(unsigned _subint)
Set the sub-integration for which a tranformation will be computed.
Definition: VariableTransformation.C:28
virtual void set_chan(unsigned _chan)
Set the frequency channel for which a tranformation will be computed.
Definition: VariableTransformation.C:37

Generated using doxygen 1.8.17