// C++ informative line for the emacs editor: -*- C++ -*-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef __CommonFG_H
#define __CommonFG_H
#ifndef H5_NO_NAMESPACE
namespace H5 {
#endif
// Class forwarding
class Group;
class H5File;
class ArrayType;
class VarLenType;
/*! \class CommonFG
    \brief \a CommonFG is an abstract base class of H5File and H5Group.
    It provides common operations of H5File and H5Group.
*/
class H5_DLLCPP CommonFG {
   public:
    // Creates a new group at this location which can be a file
    // or another group.
    Group createGroup(const char* name, size_t size_hint = 0) const;
    Group createGroup(const H5std_string& name, size_t size_hint = 0) const;
    // Opens an existing group in a location which can be a file
    // or another group.
    Group openGroup(const char* name) const;
    Group openGroup(const H5std_string& name) const;
    // Creates a new dataset at this location.
    DataSet createDataSet(const char* name, const DataType& data_type, const DataSpace& data_space, const DSetCreatPropList& create_plist = DSetCreatPropList::DEFAULT) const;
    DataSet createDataSet(const H5std_string& name, const DataType& data_type, const DataSpace& data_space, const DSetCreatPropList& create_plist = DSetCreatPropList::DEFAULT) const;
    // Opens an existing dataset at this location.