Line data Source code
1 : /* 2 : * ALMA - Atacama Large Millimeter Array 3 : * (c) European Southern Observatory, 2002 4 : * (c) Associated Universities Inc., 2002 5 : * Copyright by ESO (in the framework of the ALMA collaboration), 6 : * Copyright by AUI (in the framework of the ALMA collaboration), 7 : * All rights reserved. 8 : * 9 : * This library is free software; you can redistribute it and/or 10 : * modify it under the terms of the GNU Lesser General Public 11 : * License as published by the Free software Foundation; either 12 : * version 2.1 of the License, or (at your option) any later version. 13 : * 14 : * This library is distributed in the hope that it will be useful, 15 : * but WITHOUT ANY WARRANTY, without even the implied warranty of 16 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 : * Lesser General Public License for more details. 18 : * 19 : * You should have received a copy of the GNU Lesser General Public 20 : * License along with this library; if not, write to the Free Software 21 : * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22 : * MA 02111-1307 USA 23 : * 24 : * File UTCCorrection.h 25 : */ 26 : 27 : #ifndef UTCCorrection_CLASS 28 : #define UTCCorrection_CLASS 29 : 30 : namespace asdm { 31 : 32 : class UTCCorrection : public Interval { 33 : /** 34 : * The UTCCorrestion class is used in the table of corrections to obtain UTC time 35 : * from TAI time. A UTCCorrection instance has the Julian day on which a leap second 36 : * was added to UTC time and the cumulative number of added leap seconds at that time. 37 : * 38 : * @version 1.00 Nov 16, 2004 39 : * @author Allen Farris 40 : */ 41 : public: 42 : UTCCorrection(double jd, double taiMinusUTC); 43 : double getJD() const; 44 : double getTAIMinusUTC() const; 45 : 46 : private: 47 : double jd; 48 : double taiMinusUTC; 49 : 50 : }; 51 : 52 96 : inline UTCCorrection::UTCCorrection(double jd, double taiMinusUTC) { 53 96 : this->jd = jd; 54 96 : this->taiMinusUTC = taiMinusUTC; 55 96 : } 56 : 57 0 : inline double UTCCorrection::getJD() const { 58 0 : return jd; 59 : } 60 : 61 0 : inline double UTCCorrection::getTAIMinusUTC() const { 62 0 : return taiMinusUTC; 63 : } 64 : 65 : } // End namespace asdm 66 : 67 : #endif /* UTCCorrection_CLASS */