src/sct_io.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Aleksander Morgado Juez                         *
00003  *   scitime@aleksander_morgado.mm.st                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Library General Public License as       *
00007  *   published by the Free Software Foundation; either version 2 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU Library General Public     *
00016  *   License along with this program; if not, write to the                 *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef sct_io_H
00022 #define sct_io_H
00023 
00024 
00025 
00039 int sct_set_jd (sct_time_ptr pElement, const double jd);
00040 
00041 
00052 int sct_set_jd_acc (sct_time_ptr pElement, \
00053     const double jd, const SCT_ACCURACY accuracy);
00054 
00055 
00065 int sct_set_mjd (sct_time_ptr pElement, const double mjd);
00066 
00067 
00078 int sct_set_mjd_acc (sct_time_ptr pElement, \
00079     const double mjd, const SCT_ACCURACY accuracy);
00080 
00081 
00091 int sct_set_mjd2000 (sct_time_ptr pElement, const double mjd2000);
00092 
00093 
00104 int sct_set_mjd2000_acc (sct_time_ptr pElement, \
00105     const double mjd2000, const SCT_ACCURACY accuracy);
00106 
00107 
00122 int sct_set_YMDHMSF ( \
00123     sct_time_ptr pElement, \
00124     const unsigned int year, \
00125     const unsigned int month, \
00126     const unsigned int day, \
00127     const unsigned int hour, \
00128     const unsigned int minute, \
00129     const unsigned int second, \
00130     const u_int64_t femtosecond);
00131 
00141 int sct_copy(sct_time_ptr pDest, const sct_time_ptr pSource);
00142 
00151 int sct_set_delta_secs (sct_time_ptr pDelta, const double secs);
00152 
00153 
00160 int sct_clear(sct_time_ptr pElement);
00161 
00162 
00163 
00177 int sct_get_jd (const sct_time_ptr pElement, double *pJd);
00178 
00179 
00180 
00191 int sct_get_mjd (const sct_time_ptr pElement, double *pMjd);
00192 
00193 
00194 
00205 int sct_get_mjd2000 (const sct_time_ptr pElement, double *pMjd2000);
00206 
00221 int sct_get_YMDHMSF ( \
00222     const sct_time_ptr pElement, \
00223     unsigned int *pYear, \
00224     unsigned int *pMonth, \
00225     unsigned int *pDay, \
00226     unsigned int *pHour, \
00227     unsigned int *pMinute, \
00228     unsigned int *pSecond, \
00229     u_int64_t    *pFemtosecond);
00230 
00231 
00240 int sct_get_delta_secs (const sct_time_ptr pDelta, double *pSecs);
00241 
00242 
00249 int sct_print(const sct_time_ptr pElement);
00250 
00251 
00252 
00253 #endif //sct_io_H

Generated on Sun May 20 15:32:42 2007 for scitime by  doxygen 1.5.1