00001 /** @file psConfigure.h 00002 * 00003 * @brief Functions to init and cleanup psLib 00004 * 00005 * These functions initalize psLib data before the beginning of a run and 00006 * remove (finalize) the same data after the run is complete. A function is 00007 * also provided to return the current psLib version. 00008 * 00009 * 00010 * @author Ross Harman, MHPCC 00011 * @author Robert DeSonia, MHPCC 00012 * 00013 * @version $Revision: 1.10 $ $Name: $ 00014 * @date $Date: 2007/01/23 22:47:23 $ 00015 * 00016 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 00017 */ 00018 00019 #ifndef PS_CONFIGURE_H 00020 #define PS_CONFIGURE_H 00021 00022 /// @addtogroup SysUtils System Utilities 00023 /// @{ 00024 00025 /** Get current psLib version 00026 * 00027 * Returns the current psLib version name as a string. 00028 * 00029 * @return psString: String with version name. 00030 */ 00031 psString psLibVersion( 00032 void 00033 ); 00034 00035 /** Get current psLib version (full identification) 00036 * 00037 * Returns the current psLib version name and other information identifying the compilation. 00038 * 00039 * @return psString: String with identity. 00040 */ 00041 psString psLibVersionLong(void); 00042 00043 00044 /** Initializes persistent memory. 00045 * 00046 * Creates persistant memory items used throughout psLib. Items created 00047 * within this method should be freed with the psLibFinalize function. 00048 * current, a non-NULL psErr is returned with code PS_ERR_NONE. 00049 * 00050 */ 00051 void psLibInit( 00052 const char* timeConfig ///< Filename of config file for psTime. 00053 ); 00054 00055 /** Removes persistant memory created with the psLibInit function. 00056 * 00057 * The memory created but not freed by psLib modules should be freed 00058 * within this function at the end of a psLib execution cycle. 00059 * 00060 * @return void: void. 00061 */ 00062 void psLibFinalize( 00063 void 00064 ); 00065 00066 // Check the memory; intended for use on exit, but might be used elsewhere 00067 void p_psMemoryCheck(void); 00068 00069 /// @} 00070 #endif // #ifndef PS_CONFIGURE_H
1.5.1