ConvertMJD.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/More/Polarimetry/Pulsar/ConvertMJD.h
10 
11 #ifndef __Calibration_ConvertMJD_Header
12 #define __Calibration_ConvertMJD_Header
13 
14 #include "MEAL/Axis.h"
15 #include "MJD.h"
16 
17 namespace Calibration {
18 
20  class ConvertMJD : public MEAL::Axis<double> {
21 
22  public:
23 
26 
28  void set_epoch (const MJD&);
29 
31  void set_reference_epoch (const MJD&);
32 
34  MJD get_reference_epoch () const;
35 
37  void set_scale (double scale);
38 
39  protected:
40 
43 
45  double scale;
46 
47  };
48 
49 }
50 
51 #endif
52 
MJD get_reference_epoch() const
Get the reference epoch.
Definition: ConvertMJD.C:28
void set_epoch(const MJD &)
Set the epoch.
Definition: ConvertMJD.C:16
void set_reference_epoch(const MJD &)
Set the reference epoch.
Definition: ConvertMJD.C:23
ConvertMJD()
Default constructor.
Definition: ConvertMJD.C:10
double scale
The scale used during conversion.
Definition: ConvertMJD.h:55
MJD reference_epoch
The reference epoch.
Definition: ConvertMJD.h:52
void set_scale(double scale)
Set the scale to be used during conversion.
Definition: ConvertMJD.C:34

Generated using doxygen 1.8.17