diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-02-29 02:45:23 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-02-29 02:45:23 (GMT) |
commit | 198ceb5fcc2bc9fd9893bf5905e6fc352c3d6d0a (patch) | |
tree | 406280cf92e68977c39b56747df9a80e96c617c7 /java/src/hdf/hdf5lib/structs | |
parent | 63249be0e10a8726acb5a7cf64491319eaa46227 (diff) | |
download | hdf5-198ceb5fcc2bc9fd9893bf5905e6fc352c3d6d0a.zip hdf5-198ceb5fcc2bc9fd9893bf5905e6fc352c3d6d0a.tar.gz hdf5-198ceb5fcc2bc9fd9893bf5905e6fc352c3d6d0a.tar.bz2 |
[svn-r29227] HDFFV-9552: merge in java code.
new files added.
Diffstat (limited to 'java/src/hdf/hdf5lib/structs')
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5E_error2_t.java | 41 | ||||
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5F_info2_t.java | 47 |
2 files changed, 88 insertions, 0 deletions
diff --git a/java/src/hdf/hdf5lib/structs/H5E_error2_t.java b/java/src/hdf/hdf5lib/structs/H5E_error2_t.java new file mode 100644 index 0000000..b7cd60a --- /dev/null +++ b/java/src/hdf/hdf5lib/structs/H5E_error2_t.java @@ -0,0 +1,41 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by The HDF Group. * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from help@hdfgroup.org. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +package hdf.hdf5lib.structs; + +import java.io.Serializable; + +//Information struct for Attribute (For H5Ewalk) +public class H5E_error2_t implements Serializable{ + private static final long serialVersionUID = 279144359041667613L; + + public long cls_id; //class ID + public long maj_num; //major error ID + public long min_num; //minor error number + public int line; //line in file where error occurs + public String func_name; //function in which error occurred + public String file_name; //file in which error occurred + public String desc; //optional supplied description + + H5E_error2_t(long cls_id, long maj_num, long min_num, int line, String func_name, String file_name, String desc) { + this.cls_id = cls_id; + this.maj_num = maj_num; + this.min_num = min_num; + this.line = line; + this.func_name = func_name; + this.file_name = file_name; + this.desc = desc; + } +} diff --git a/java/src/hdf/hdf5lib/structs/H5F_info2_t.java b/java/src/hdf/hdf5lib/structs/H5F_info2_t.java new file mode 100644 index 0000000..8fbde68 --- /dev/null +++ b/java/src/hdf/hdf5lib/structs/H5F_info2_t.java @@ -0,0 +1,47 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by The HDF Group. * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from help@hdfgroup.org. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +package hdf.hdf5lib.structs; + +import java.io.Serializable; + +//Information struct for object (for H5Fget_info) +public class H5F_info2_t implements Serializable{ + private static final long serialVersionUID = 4691681162544054518L; + public int super_version; // Superblock version # + public long super_size; // Superblock size + public long super_ext_size; // Superblock extension size + public int free_version; // Version # of file free space management + public long free_meta_size; // Free space manager metadata size + public long free_tot_space; // Amount of free space in the file + public int sohm_version; // Version # of shared object header info + public long sohm_hdr_size; // Shared object header message header size + public H5_ih_info_t sohm_msgs_info; // Shared object header message index & heap size + + public H5F_info2_t (int super_version, long super_size, long super_ext_size, + int free_version, long free_meta_size, long free_tot_space, + int sohm_version, long sohm_hdr_size, H5_ih_info_t sohm_msgs_info) + { + this.super_version = super_version; + this.super_size = super_size; + this.super_ext_size = super_ext_size; + this.free_version = free_version; + this.free_meta_size = free_meta_size; + this.free_tot_space = free_tot_space; + this.sohm_version = sohm_version; + this.sohm_hdr_size = sohm_hdr_size; + this.sohm_msgs_info = sohm_msgs_info; + } +} |