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
17namespace 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
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
104
106 double delay;
107
108 };
109
110
111}
112
113#endif
Definition ArchiveExtension.h:24
Signal::Hand hand
The backend handedness.
Definition Backend.h:94
TextInterface::Parser * get_interface()
Return a text interfaces that can be used to access this instance.
Definition Backend.C:77
const Backend & operator=(const Backend &)
Operator =.
Definition Backend.C:31
double get_delay() const
Get the delay.
Definition Backend.h:83
std::string get_short_name() const
Return an abbreviated name that can be typed relatively quickly.
Definition Backend.h:39
bool downconversion_corrected
True if backend has compensated for lower sideband downconversion.
Definition Backend.h:100
void set_name(const std::string &name)
Set the name of the backend.
Definition Backend.C:89
Signal::Hand get_hand() const
Get the hand of the backend.
Definition Backend.C:95
std::string name
The name of the backend.
Definition Backend.h:91
Backend(const std::string &ext_name="Backend")
Default constructor.
Definition Backend.C:11
void set_delay(const double set_delay)
Set the delay.
Definition Backend.h:86
Signal::Argument get_argument() const
Get the argument of the backend.
Definition Backend.C:107
void set_corrected(bool corrected=true)
True if backend corrections were applied during calibration.
Definition Backend.C:137
Signal::Argument argument
The backend argument.
Definition Backend.h:97
void set_downconversion_corrected(bool corrected=true)
True if backend has compensated for lower sideband downconversion.
Definition Backend.C:125
bool corrected
True if backend corrections were applied during calibration.
Definition Backend.h:103
void set_hand(Signal::Hand)
Set the hand of the backend.
Definition Backend.C:101
Backend * clone() const
Clone method.
Definition Backend.h:35
void set_argument(Signal::Argument)
Set the argument of the backend.
Definition Backend.C:113
bool get_downconversion_corrected() const
True if backend has compensated for lower sideband downconversion.
Definition Backend.C:119
double delay
proportional delay from digitiser input
Definition Backend.h:106
std::string get_name() const
Return the name of the Backend.
Definition Backend.C:83
bool get_corrected() const
True if backend corrections were applied during calibration.
Definition Backend.C:131
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0