00001 /** @file psConfigure.h 00002 * 00003 * @brief Contains the declarations for initialization, memory finalization, 00004 * and configuration. 00005 * 00006 * These functions initalize psLib data before the beginning of a run and 00007 * remove (finalize) the same data after the run is complete. A function is 00008 * also provided to return the current psLib version. 00009 * 00010 * @ingroup Configure 00011 * 00012 * @author Ross Harman, MHPCC 00013 * @author Robert DeSonia, MHPCC 00014 * 00015 * @version $Revision: 1.1.1.1 $ $Name: $ 00016 * @date $Date: 2005/09/14 20:42:48 $ 00017 * 00018 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 00019 */ 00020 00021 #ifndef PS_CONFIGURE_H 00022 #define PS_CONFIGURE_H 00023 00024 /** @addtogroup Configure 00025 * @{ 00026 */ 00027 00028 /** Get current psLib version 00029 * 00030 * Returns the current psLib version name as a string. 00031 * 00032 * @return char*: String with version name. 00033 */ 00034 char* psLibVersion( 00035 void 00036 ); 00037 00038 /** Initializes persistent memory. 00039 * 00040 * Creates persistant memory items used throughout psLib. Items created 00041 * within this method should be freed with the psLibFinalize function. 00042 * current, a non-NULL psErr is returned with code PS_ERR_NONE. 00043 * 00044 */ 00045 void psLibInit( 00046 const char* timeConfig ///< Filename of config file for psTime. 00047 ); 00048 00049 /** Removes persistant memory created with the psLibInit function. 00050 * 00051 * The memory created but not freed by psLib modules should be freed 00052 * within this function at the end of a psLib execution cycle. 00053 * 00054 * @return void: void. 00055 */ 00056 void psLibFinalize( 00057 void 00058 ); 00059 00060 00061 /** @} */ 00062 00063 #endif // #ifndef PS_CONFIGURE_H
1.4.2