//-------------------------------------------------------------------------- // Function: H5Library::checkVersion (static) ///\brief Verifies that the arguments match the version numbers /// compiled into the library ///\param majnum - IN: Major version of the library ///\param minnum - IN: Minor version of the library ///\param relnum - IN: Release number of the library ///\exception H5::LibraryIException ///\par Description /// For information about library version, please refer to /// the H5check_version API in the HDF5 C Reference Manual. // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- void H5Library::checkVersion(unsigned majnum, unsigned minnum, unsigned relnum) { herr_t ret_value = H5check_version(majnum, minnum, relnum); if (ret_value < 0) { throw LibraryIException("H5Library::checkVersion", "H5check_version failed"); } }
int main(int ac, char **av) { parse(ac, av); HDsignal(SIGABRT, &abort_intercept); H5check_version(major, minor, release); HDsignal(SIGABRT, SIG_DFL); return 0; }
/*--------------------------------------------------------------------------- * Name: h5check_version_c * Purpose: Calls H5check_version function * to verify library version info. * Inputs: * majnum - the major version of the library * minnum - the minor version of the library * relnum - the release version of the library * Outputs: * None * Returns: 0 on success, aborts on failure * Programmer: Elena Pourmal * Tuesday, September 24, 2002 * Modifications: *---------------------------------------------------------------------------*/ int_f nh5check_version_c( int_f *majnum, int_f *minnum, int_f *relnum) { int ret_value = -1; unsigned c_majnum, c_minnum, c_relnum; c_majnum = (unsigned) *majnum; c_minnum = (unsigned) *minnum; c_relnum = (unsigned) *relnum; H5check_version(c_majnum, c_minnum, c_relnum); ret_value = 0; return ret_value; }
/* * Class: hdf_hdf5lib_H5 * Method: H5check_version * Signature: (III)I */ JNIEXPORT jint JNICALL Java_hdf_hdf5lib_H5_H5check_1version (JNIEnv *env, jclass clss, jint majnum, jint minnum, jint relnum) { return (jint)H5check_version((unsigned)majnum, (unsigned)minnum, (unsigned)relnum); } /* end Java_hdf_hdf5lib_H5_H5check_1version */