ITRFExtension.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2003 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/ITRFExtension.h
10 
11 #ifndef __ITRFExtension_h
12 #define __ITRFExtension_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 
16 namespace Pulsar {
17 
19 
22  class ITRFExtension : public Pulsar::Archive::Extension {
23 
24  public:
25 
28 
30  ITRFExtension (const ITRFExtension& extension);
31 
33  const ITRFExtension& operator= (const ITRFExtension& extension);
34 
36  ~ITRFExtension ();
37 
39  ITRFExtension* clone () const { return new ITRFExtension( *this ); }
40 
43  class Interface;
44 
46  std::string get_short_name () const { return "itrf"; }
47 
48  // get methods
49  double get_ant_x() const { return ant_x; }
50  double get_ant_y() const { return ant_y; }
51  double get_ant_z() const { return ant_z; }
52 
53  // set methods
54  void set_ant_x(const double _ant_x) { ant_x = _ant_x; }
55  void set_ant_y(const double _ant_y) { ant_y = _ant_y; }
56  void set_ant_z(const double _ant_z) { ant_z = _ant_z; }
57 
59  void get_sph (double& lat, double& lon, double& rad);
60 
62 
64  double ant_x;
65 
67  double ant_y;
68 
70  double ant_z;
71 
72  };
73 
74 
75 }
76 
77 #endif
ITRFExtension()
Default constructor.
Definition: ITRFExtension.C:12
void get_sph(double &lat, double &lon, double &rad)
Get geocentric latitude and longitude in radians, and radius in metres.
Definition: ITRFExtension.C:41
International Terrestrial Reference Frame Extension.
Definition: ITRFExtension.h:27
double ant_z
Antenna ITRF Z-coordinate.
Definition: ITRFExtension.h:80
const ITRFExtension & operator=(const ITRFExtension &extension)
Operator =.
Definition: ITRFExtension.C:31
double ant_y
Antenna ITRF Y-coordinate.
Definition: ITRFExtension.h:77
double ant_x
Antenna ITRF X-coordinate.
Definition: ITRFExtension.h:74
std::string get_short_name() const
Return an abbreviated name that can be typed relatively quickly.
Definition: ITRFExtension.h:56
~ITRFExtension()
Destructor.
Definition: ITRFExtension.C:49
Definition: ArchiveExtension.h:28
ITRFExtension * clone() const
Clone method.
Definition: ITRFExtension.h:49
TextInterface::Parser * get_interface()
Return a text interfaces that can be used to access this instance.
Definition: ITRFExtension.C:78
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17