/** * @brief Initialize the NAIF kernel keeper pool * * This method will thoroughly clear out the NAIF kernel keeper pool. This is * done using the NAIF k_clear() utility. As the documentation states, it * operates by side effects unloading all kernels and reinitializing the * keeper pool. * * This method has no regard at to whether any of the NAIF kernels are managed * or not. It does update all kernels load status to unloaded. * * NOTE: This method should be used with caution as it can have disasterous * side effects for ISIS processing. Specifically, using this method * arbitrarily will likely cause fatal exceptions particularly for Spice class * instantiations. * */ void Kernels::InitializeNaifKernelPool() { kclear_c(); for (unsigned int i = 0 ; i < _kernels.size() ; i++) { _kernels[i].loaded = false; } return; }
VALUE kclear(VALUE self) { kclear_c(); if(spice_error(SHORT)) return Qfalse; return Qtrue; }
static VALUE kclear(VALUE self) { kclear_c(); if(spice_error(SPICE_ERROR_SHORT)) return Qfalse; return Qtrue; }