Site.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Util/tempo/Pulsar/Site.h
10 
11 #ifndef __Pulsar_Site_h
12 #define __Pulsar_Site_h
13 
14 #include "Reference.h"
15 
16 namespace Pulsar
17 {
18 
20  class Site : public Reference::Able
21  {
22  public:
23 
25  virtual std::string get_name () const = 0;
26 
28  virtual void get_xyz (double& x, double& y, double& z) const = 0;
29 
31 
32  virtual void get_sph (double& lat, double& lon, double& rad) const = 0;
33 
35  static const Site* location (const std::string& antenna);
36  };
37 
38 }
39 
40 #endif
41 
@ Pulsar
A pulsar.
Definition: Types.h:63
virtual std::string get_name() const =0
Get the observatory name.
static const Site * location(const std::string &antenna)
Get the location of the named antenna.
Definition: Site_location.C:22
virtual void get_sph(double &lat, double &lon, double &rad) const =0
Get the latitude and longitude in radians, and radius in metres.
Manages Reference::To references to the instance.
Definition: ReferenceAble.h:40
virtual void get_xyz(double &x, double &y, double &z) const =0
Get the geocentric XYZ coordinates in metres.
Site coordinates.
Definition: Site.h:25

Generated using doxygen 1.8.17