void nitf::PluginRegistry::registerTREHandler(NITF_PLUGIN_INIT_FUNCTION init, NITF_PLUGIN_TRE_HANDLER_FUNCTION handler) throw(nitf::NITFException) { nitf_Error error; if (!nitf_PluginRegistry_registerTREHandler(init, handler, &error)) throw nitf::NITFException(&error); }
void register_tre_handler(NITF_PLUGIN_INIT_FUNCTION init, NITF_PLUGIN_TRE_HANDLER_FUNCTION handler) { nitf_Error error; if (!nitf_PluginRegistry_registerTREHandler(init, handler, &error)) { ::nitf::NITFException ex(&error); throw pdal_error(ex.toString()); } }