ObservationInterface.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2011 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Classes/dsp/ObservationInterface.h
10 
11 #ifndef __dsp_ObservationTI_h
12 #define __dsp_ObservationTI_h
13 
14 #include "dsp/Observation.h"
15 #include "TextInterface.h"
16 
17 namespace dsp
18 {
19 
21  class Observation::Interface : public TextInterface::To<Observation>
22  {
23 
24  public:
25 
27  Interface ( Observation* = 0 );
28 
30  void set_instance (Observation*) ;
31 
34 
36  std::string get_interface_name() const { return "Observation::Interface"; }
37 
38  };
39 
40 }
41 
42 
43 #endif
void add(T(P::*get)() const, const char *name, const char *description=0)
double get_scale() const
Return the amount by which data has been scaled.
Definition: Observation.h:162
virtual void set_bandwidth(double _bandwidth)
Set the bandwidth of signal in MHz (-ve = lsb; +ve = usb)
Definition: Observation.h:145
Observation()
Null constructor.
Definition: Observation.C:26
virtual void set_rotation_measure(double rm)
Set the pulsar rotation mesure.
Definition: Observation.h:208
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
std::string get_interface_name() const
Get the interface name.
Definition: ObservationInterface.h:46
unsigned get_ndim() const
Return the dimension of each datum.
Definition: Observation.h:80
double get_rotation_measure() const
Returns the pulsar rotation measure.
Definition: Observation.h:211
virtual void set_type(Signal::Source _type)
Set the source type.
Definition: Observation.h:73
int get_dual_sideband() const
Return the dual-sideband.
Definition: Observation.C:93
Signal::State get_state() const
Return the state of the signal.
Definition: Observation.h:70
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
sky_coord get_coordinates() const
Return the coordinates of the source.
Definition: Observation.h:128
virtual void set_machine(const std::string &_m)
Set the instrument used to record signal.
Definition: Observation.h:192
virtual void set_instance(C *c)
double get_dispersion_measure() const
Returns the pulsar dispersion measure.
Definition: Observation.h:205
uint64_t get_ndat() const
Return the number of time samples in container.
Definition: Observation.h:107
virtual void set_dual_sideband(int _dual)
Set to 1 if the spectrum in each channel has dual-sideband frequency order.
Definition: Observation.C:85
virtual void set_dispersion_measure(double dm)
Set the pulsar dispersion mesure.
Definition: Observation.h:202
virtual void set_telescope(const std::string &name)
Set the telescope name.
Definition: Observation.h:110
unsigned get_npol() const
Return the number of polarizations.
Definition: Observation.h:90
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
std::string get_telescope() const
Return the telescope name.
Definition: Observation.h:112
virtual void set_source(const std::string &name)
Set the source name.
Definition: Observation.h:120
double get_bandwidth() const
Return the bandwidth of signal in MHz (-ve = lsb; +ve = usb)
Definition: Observation.h:147
Provides a text interface to get and set Observation attributes.
Definition: ObservationInterface.h:26
Interface(Observation *=0)
Default constructor that takes an optional instance.
Definition: ObservationInterface.C:10
virtual void set_start_time(MJD _start_time)
Set the start time of the leading edge of the first time sample.
Definition: Observation.h:150
std::string get_source() const
Return the source name.
Definition: Observation.h:122
double get_centre_frequency() const
Return the centre frequency of the band-limited signal in MHz.
Definition: Observation.h:134
virtual void set_scale(double _scale)
Set the amount by which data has been scaled.
Definition: Observation.h:160
Signal::Source get_type() const
Return the source type.
Definition: Observation.h:75
void set_instance(Observation *)
Set the instance to which this interface interfaces.
Definition: ObservationInterface.C:75
virtual void set_centre_frequency(double cf)
Set the centre frequency of the band-limited signal in MHz.
Definition: Observation.h:132
virtual void set_coordinates(sky_coord _coordinates)
Set the coordinates of the source.
Definition: Observation.h:125
MJD get_start_time() const
Return the start time of the leading edge of the first time sample.
Definition: Observation.h:152
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
virtual void set_state(Signal::State _state)
Set the state of the signal.
Definition: Observation.C:103
TextInterface::Parser * clone()
clone this text interface
Definition: ObservationInterface.C:80
unsigned get_nchan() const
Return the number of channels into which the band is divided.
Definition: Observation.h:85

Generated using doxygen 1.8.17