PhaseVsFrequency.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/PhaseVsFrequency.h
10
11#ifndef __Pulsar_PhaseVsFrequency_h
12#define __Pulsar_PhaseVsFrequency_h
13
14#include "Pulsar/PhaseVsPlot.h"
15#include "Pulsar/Index.h"
16#include "Pulsar/Integration.h"
17
18namespace Pulsar {
19
22
23 public:
24
27
30
31 // Text interface to the PhaseVsFrequency class
32 class Interface : public TextInterface::To<PhaseVsFrequency> {
33 public:
34 Interface (PhaseVsFrequency* = 0);
35 };
36
38 std::string get_ylabel (const Archive*);
39
41 const Profile* get_Profile (const Archive* data, unsigned row);
42
44 void set_subint (const Index& _isubint) { isubint = _isubint; }
45 Index get_subint () const { return isubint; }
46
48 void set_pol (const Index& _ipol) { ipol = _ipol; }
49 Index get_pol () const { return ipol; }
50
52 void prepare (const Archive *data);
53
54 protected:
55
56 Index isubint;
57 Index ipol;
58
60
61 };
62
63}
64
65#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
PhaseVsFrequency()
Default constructor.
Definition PhaseVsFrequency.C:12
The primary interface to pulsar observational data.
Definition Archive.h:46
Combines an index value and integrate flag.
Definition Index.h:19
void prepare(const Archive *data)
Prepare for plotting.
Definition PhaseVsFrequency.C:31
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition PhaseVsFrequency.C:21
void set_subint(const Index &_isubint)
Set the sub-integration to plot (where applicable)
Definition PhaseVsFrequency.h:44
void set_pol(const Index &_ipol)
Set the polarization to plot.
Definition PhaseVsFrequency.h:48
const Profile * get_Profile(const Archive *data, unsigned row)
Derived classes must provide the Profile for the specified row.
Definition PhaseVsFrequency.C:38
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition PhaseVsFrequency.C:26
PhaseVsFrequency()
Default constructor.
Definition PhaseVsFrequency.C:12
PhaseVsPlot()
Default constructor.
Definition PhaseVsPlot.C:26
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0