Beispiel #1
0
 public HDF5File(string fn, HDF5FileMode mode = HDF5FileMode.ReadOnly)
 {
     Filename = fn;
     if (mode == HDF5FileMode.WriteNew)
     {
         Create(fn);
     }
     else if ((mode == HDF5FileMode.ReadOnly) || File.Exists(fn))
     {
         h5ID = H5F.open(fn, (uint)mode);
         ExpectValidFile(fn);
         _bhInfo = new H5F.info_t();
         H5F.get_info(h5ID, ref _bhInfo);
     }
     else
     {
         Create(fn);
     }
     name = "/";
 }
Beispiel #2
0
 public void H5Fget_infoTest2()
 {
     H5F.info_t info = new H5F.info_t();
     Assert.IsFalse(
         H5F.get_info(Utilities.RandomInvalidHandle(), ref info) >= 0);
 }
Beispiel #3
0
 public void H5Fget_infoTest1()
 {
     H5F.info_t info = new H5F.info_t();
     Assert.IsTrue(H5F.get_info(m_v0_class_file, ref info) >= 0);
     Assert.IsTrue(H5F.get_info(m_v2_class_file, ref info) >= 0);
 }