Common Pipeline Library Reference 7.3.2
|
Functions | |
void | cpl_end (void) |
Stop the internal subsystems of CPL. | |
const char * | cpl_get_description (unsigned self) |
Create a string of version numbers of CPL and its libraries. | |
void | cpl_init (unsigned self) |
Initialise the CPL core library. | |
The module provides the CPL library startup routine. The startup routine initialises CPL internal data structures. For this reason, any application using functions from the CPL libraries must call the startup routine prior to calling any other CPL function.
void cpl_end | ( | void | ) |
Stop the internal subsystems of CPL.
This function must be called after any other CPL function is called.
References cpl_fits_set_mode(), CPL_FITS_STOP_CACHING, and cpl_msg_stop().
Referenced by cpl_test_end().
const char * cpl_get_description | ( | unsigned | self | ) |
Create a string of version numbers of CPL and its libraries.
self | CPL_DESCRIPTION_DEFAULT |
References cpl_msg_warning().
void cpl_init | ( | unsigned | self | ) |
Initialise the CPL core library.
self | CPL_INIT_DEFAULT is the only supported value |
This function sets up the library internal subsystems, which other CPL functions expect to be in a defined state. In particular, the CPL memory management and the CPL messaging systems are initialised by this function call.
One of the internal subsystems of CPL handles memory allocation. The default CPL memory mode is defined during the build procedure, this default can be changed during the call to cpl_init() via the environment variable CPL_MEMORY_MODE. The valid values are 0: Use the default system functions for memory handling 1: Exit if a memory-allocation fails, provide checking for memory leaks, limited reporting of memory allocation and limited protection on deallocation of invalid pointers. 2: Exit if a memory-allocation fails, provide checking for memory leaks, extended reporting of memory allocation and protection on deallocation of invalid pointers. Any other value (including NULL) will leave the default memory mode unchanged.
This function also reads the environment variable CPL_IO_MODE. Iff set to 1, cpl_fits_set_mode() is called with CPL_FITS_START_CACHING.
Possible _cpl_error_code_ set in this function:
References cpl_fits_set_mode(), CPL_FITS_START_CACHING, cpl_msg_init(), and cpl_msg_warning().