IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2007, 4:28:48 PM (19 years ago)
Author:
jhoblitt
Message:

change psLibInit() to return a boolean status
change psLibFinalize() to abort on error as psError() may not/should not be working after invoking this function
change psTimeInitialize() to return a bool status
change psTimeInitialize() to deffer the actual loading of the "time tables"
rename psTimeInitialize() -> psTimeInit()
rename p_psTimeConfigFileName() -> p_psTimeConfigFilename()
change p_psTimeConfigFilename() to accept a filename argument
p_psTimeConfigFilename() now either return's the current conf files name when passed NULL or sets it to the "filename" parameter that is passed in
change all psTime* functions to make sure that the "time tables" have been initalized before using them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.h

    r11668 r13950  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2007-02-06 21:36:09 $
     13 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-06-22 02:28:48 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7575
    7676
    77 // get the pslib.config filename by checking environment variable first, then original installation area.
    78 const char *p_psTimeConfigFileName();
    79 
    80 
    8177/** Initialize time data.
    8278 *
    83  * Reads config and data files associated with various time conversions.
    84  *
    85  * @return bool:    True for success, false for failure.
    86  */
    87 bool p_psTimeInit(
    88     const char *fileName               ///< File name containing config/data info
    89 );
    90 
    91 /** Initialize time data.
    92  *
    93  *  Reads the configuration file and sets up the appropriate psTimeTables and predictions.
    94  */
    95 void psTimeInitialize(
    96     const char *timeConfig             ///< psTime configuration file
    97 );
    98 
    99 /** Free memory persistant time data.
    100  *
    101  * Frees time data to be held in memory until the end of successful program execution.
    102  *
    103  * @return void:    void.
    104  */
     79 *  Sets the configuration file and sets up the appropriate psTimeTables and predictions.
     80 */
     81bool psTimeInit(
     82    const char *filename                ///< psTime configuration file
     83);
     84
     85
     86/** Frees memory that was allocated by psTime functions.
     87 *
     88 *  Allows a subsequent search for leaked memory.
     89 *
     90 * @return true on sucess.
     91*/
    10592bool p_psTimeFinalize(void);
    10693
     
    476463);
    477464
     465// used by p_psEOCInit()
     466const char *p_psTimeConfigFilename(const char *filename);
     467
    478468/// @}
    479469
Note: See TracChangeset for help on using the changeset viewer.