WidebandCorrelator.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/WidebandCorrelator.h
10
11#ifndef __Pulsar_WideBandCorrelator_h
12#define __Pulsar_WideBandCorrelator_h
13
14#include "Pulsar/Backend.h"
15#include "TextInterface.h"
16
17namespace Pulsar {
18
20
23
24 public:
25
28
30 WidebandCorrelator (const WidebandCorrelator& extension);
31
33 const WidebandCorrelator& operator= (const WidebandCorrelator& extension);
34
37
38 // Text interface to a WidebandCorrelator instance
39 class Interface : public TextInterface::To<WidebandCorrelator>
40 {
41 public:
42 Interface( WidebandCorrelator *s_instance = NULL );
43 };
44
47
49 //
50 // Archive::Extension implementation
51 //
53
56 { return new WidebandCorrelator( *this ); }
57
59
61 std::string get_config() const { return configfile; }
62 void set_config( const std::string& config ) { configfile = config; }
63
65 double get_tcycle() const { return tcycle; }
66 void set_tcycle(const double _tcycle) { tcycle = _tcycle; }
67
69 int get_nrcvr() const { return nrcvr; }
70 void set_nrcvr(int _nrcvr) { nrcvr = _nrcvr; }
71
73 std::string configfile;
74
76 int nrcvr;
77
79 double tcycle;
80
81 };
82
83
84}
85
86#endif
Stores information about the instrument backend.
Definition Backend.h:21
const WidebandCorrelator & operator=(const WidebandCorrelator &extension)
Assignment operator.
Definition WidebandCorrelator.C:27
int get_nrcvr() const
Get the number of receiver channels.
Definition WidebandCorrelator.h:69
~WidebandCorrelator()
Destructor.
Definition WidebandCorrelator.C:39
double tcycle
Fundamental correlator cycle time.
Definition WidebandCorrelator.h:79
std::string get_config() const
Get the configuration file name.
Definition WidebandCorrelator.h:61
WidebandCorrelator * clone() const
Clone method.
Definition WidebandCorrelator.h:55
WidebandCorrelator()
Default constructor.
Definition WidebandCorrelator.C:10
int nrcvr
Number of receiver channels.
Definition WidebandCorrelator.h:76
TextInterface::Parser * get_interface()
Return a text interfaces that can be used to access this instance.
Definition WidebandCorrelator.C:45
std::string configfile
Name of the configuration file used (if any)
Definition WidebandCorrelator.h:73
double get_tcycle() const
Get the tcycle.
Definition WidebandCorrelator.h:65
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0