Backend.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/Backend.h
10 
11 #ifndef __Pulsar_Backend_h
12 #define __Pulsar_Backend_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 #include "Conventions.h"
16 
17 namespace Pulsar {
18 
20 
21  class Backend : public Archive::Extension {
22 
23  public:
24 
26  Backend (const std::string& ext_name = "Backend");
27 
29  Backend (const Backend&);
30 
32  const Backend& operator= (const Backend&);
33 
35  Backend* clone () const
36  { return new Backend( *this ); }
37 
39  std::string get_short_name () const { return "be"; }
40 
41  class Interface;
42 
45 
47  //
48  // Backend implementation
49  //
51 
53  std::string get_name () const;
54 
56  void set_name (const std::string& name);
57 
59  Signal::Hand get_hand () const;
60 
62  void set_hand (Signal::Hand);
63 
66 
69 
71  bool get_downconversion_corrected () const;
72 
74  void set_downconversion_corrected (bool corrected = true);
75 
77  bool get_corrected () const;
78 
80  void set_corrected (bool corrected = true);
81 
83  double get_delay() const { return delay; }
84 
86  void set_delay( const double set_delay ) { delay = set_delay; }
87 
88  protected:
89 
91  std::string name;
92 
95 
98 
101 
103  bool corrected;
104 
106  double delay;
107 
108  };
109 
110 
111 }
112 
113 #endif
void add(T(P::*get)() const, const char *name, const char *description=0)
Backend(const std::string &ext_name="Backend")
Default constructor.
Definition: Backend.C:11
bool get_corrected() const
True if backend corrections were applied during calibration.
Definition: Backend.C:131
void set_dispersion_measure(double measure)
Set the auxiliary dispersion measure.
Definition: AuxColdPlasmaMeasures.C:23
void set_corrected(bool corrected=true)
True if backend corrections were applied during calibration.
Definition: Backend.C:137
Stores information about the instrument backend.
Definition: Backend.h:26
bool get_downconversion_corrected() const
True if backend has compensated for lower sideband downconversion.
Definition: Backend.C:119
void set_hand(Signal::Hand)
Set the hand of the backend.
Definition: Backend.C:101
double delay
proportional delay from digitiser input
Definition: Backend.h:116
void set_argument(Signal::Argument)
Set the argument of the backend.
Definition: Backend.C:113
bool downconversion_corrected
True if backend has compensated for lower sideband downconversion.
Definition: Backend.h:110
bool corrected
True if backend corrections were applied during calibration.
Definition: Backend.h:113
std::string get_short_name() const
Return an abbreviated name that can be typed relatively quickly.
Definition: Backend.h:49
double get_delay() const
Get the delay.
Definition: Backend.h:93
Backend * clone() const
Clone method.
Definition: Backend.h:45
Signal::Hand get_hand() const
Get the hand of the backend.
Definition: Backend.C:95
double get_rotation_measure() const
Get the auxiliary rotation measure.
Definition: AuxColdPlasmaMeasures.C:41
void set_delay(const double set_delay)
Set the delay.
Definition: Backend.h:96
std::string name
The name of the backend.
Definition: Backend.h:101
void set_name(const std::string &name)
Set the name of the backend.
Definition: Backend.C:89
std::string get_name() const
Return the name of the Backend.
Definition: Backend.C:83
TextInterface::Parser * get_interface()
Return a text interfaces that can be used to access this instance.
Definition: Backend.C:77
Signal::Hand hand
The backend handedness.
Definition: Backend.h:104
void set_downconversion_corrected(bool corrected=true)
True if backend has compensated for lower sideband downconversion.
Definition: Backend.C:125
Text interface to Backend extension.
Definition: BackendInterface.h:25
double get_dispersion_measure() const
Get the auxiliary dispersion measure.
Definition: AuxColdPlasmaMeasures.C:29
const Backend & operator=(const Backend &)
Operator =.
Definition: Backend.C:31
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void set_rotation_measure(double measure)
Set the auxiliary rotation measure.
Definition: AuxColdPlasmaMeasures.C:35
Signal::Argument get_argument() const
Get the argument of the backend.
Definition: Backend.C:107
Signal::Argument argument
The backend argument.
Definition: Backend.h:107

Generated using doxygen 1.8.17