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
16namespace Pulsar {
17
19
21
23
24 public:
25
28
30 ITRFExtension (const ITRFExtension& extension);
31
33 const ITRFExtension& operator= (const ITRFExtension& extension);
34
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
Definition ArchiveExtension.h:24
void get_sph(double &lat, double &lon, double &rad)
Get geocentric latitude and longitude in radians, and radius in metres.
Definition ITRFExtension.C:41
const ITRFExtension & operator=(const ITRFExtension &extension)
Operator =.
Definition ITRFExtension.C:31
std::string get_short_name() const
Return an abbreviated name that can be typed relatively quickly.
Definition ITRFExtension.h:46
~ITRFExtension()
Destructor.
Definition ITRFExtension.C:49
double ant_x
Antenna ITRF X-coordinate.
Definition ITRFExtension.h:64
double ant_y
Antenna ITRF Y-coordinate.
Definition ITRFExtension.h:67
TextInterface::Parser * get_interface()
Return a text interfaces that can be used to access this instance.
Definition ITRFExtension.C:78
double ant_z
Antenna ITRF Z-coordinate.
Definition ITRFExtension.h:70
ITRFExtension()
Default constructor.
Definition ITRFExtension.C:12
ITRFExtension * clone() const
Clone method.
Definition ITRFExtension.h:39
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0