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 
17 namespace Pulsar {
18 
20 
22  class WidebandCorrelator : public Pulsar::Backend {
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 
55  WidebandCorrelator* clone () const
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
WidebandCorrelator * clone() const
Clone method.
Definition: WidebandCorrelator.h:65
const WidebandCorrelator & operator=(const WidebandCorrelator &extension)
Assignment operator.
Definition: WidebandCorrelator.C:27
double get_tcycle() const
Get the tcycle.
Definition: WidebandCorrelator.h:75
Stores information about the instrument backend.
Definition: Backend.h:26
int config()
Definition: Tempo_config.C:26
Stores Parkes Wideband Correlator parameters.
Definition: WidebandCorrelator.h:27
int get_nrcvr() const
Get the number of receiver channels.
Definition: WidebandCorrelator.h:79
WidebandCorrelator()
Default constructor.
Definition: WidebandCorrelator.C:10
TextInterface::Parser * get_interface()
Return a text interfaces that can be used to access this instance.
Definition: WidebandCorrelator.C:45
std::string get_config() const
Get the configuration file name.
Definition: WidebandCorrelator.h:71
int nrcvr
Number of receiver channels.
Definition: WidebandCorrelator.h:86
~WidebandCorrelator()
Destructor.
Definition: WidebandCorrelator.C:39
const Backend & operator=(const Backend &)
Operator =.
Definition: Backend.C:31
Defines the PSRCHIVE library.
Definition: CalSource.h:17
double tcycle
Fundamental correlator cycle time.
Definition: WidebandCorrelator.h:89
std::string configfile
Name of the configuration file used (if any)
Definition: WidebandCorrelator.h:83

Generated using doxygen 1.8.17