/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * 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 LICENSE file, which can be found at the root of the source code       *
 * distribution tree, or in https://www.hdfgroup.org/licenses.               *
 * 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 group (for H5Gget_info/H5Gget_info_by_name/H5Gget_info_by_idx)
 *
 */
public class H5G_info_t implements Serializable {
    private static final long serialVersionUID = -3746463015312132912L;
    /** Type of storage for links in group */
    public int storage_type;
    /** Number of links in group */
    public long nlinks;
    /** Current max. creation order value for group */
    public long max_corder;
    /** Whether group has a file mounted on it */
    public boolean mounted;

    /** Constructor for using val_size portion of C union */
    public H5G_info_t(int storage_type, long nlinks, long max_corder, boolean mounted)
    {
        this.storage_type = storage_type;
        this.nlinks       = nlinks;
        this.max_corder   = max_corder;
        this.mounted      = mounted;
    }
}
