HDF5 C++ API Reference Manual

 

 

H5Group.h

Go to the documentation of this file.
00001 // C++ informative line for the emacs editor: -*- C++ -*-
00002 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00003  * Copyright by The HDF Group.                                               *
00004  * Copyright by the Board of Trustees of the University of Illinois.         *
00005  * All rights reserved.                                                      *
00006  *                                                                           *
00007  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00008  * terms governing use, modification, and redistribution, is contained in    *
00009  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00010  * of the source code distribution tree; Copyright.html can be found at the  *
00011  * root level of an installed copy of the electronic HDF5 document set and   *
00012  * is linked from the top-level documents page.  It can also be found at     *
00013  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00014  * access to either file, you may request a copy from [email protected].     *
00015  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00016 
00017 #ifndef _H5Group_H
00018 #define _H5Group_H
00019 
00020 #ifndef H5_NO_NAMESPACE
00021 namespace H5 {
00022 #endif
00023 
00024 class H5_DLLCPP Group : public H5Object, public CommonFG {
00025    public:
00026         // Close this group.
00027         virtual void close();
00028 
00029 #ifndef H5_NO_DEPRECATED_SYMBOLS
00030         // Retrieves the type of object that an object reference points to.
00031         H5G_obj_t getObjType(void *ref, H5R_type_t ref_type = H5R_OBJECT) const;
00032 #endif /* H5_NO_DEPRECATED_SYMBOLS */
00033 
00034         // Retrieves a dataspace with the region pointed to selected.
00035         DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
00036 
00038         virtual H5std_string fromClass () const { return("Group"); }
00039 
00040         // Throw group exception.
00041         virtual void throwException(const H5std_string& func_name, const H5std_string& msg) const;
00042 
00043         // for CommonFG to get the file id.
00044         virtual hid_t getLocId() const;
00045 
00046         // Creates a group by way of dereference.
00047         Group(H5Object& obj, const void* ref, H5R_type_t ref_type = H5R_OBJECT);
00048         Group(H5File& h5file, const void* ref, H5R_type_t ref_type = H5R_OBJECT);
00049         Group(Attribute& attr, const void* ref, H5R_type_t ref_type = H5R_OBJECT);
00050 
00051         // default constructor
00052         Group();
00053 
00054         // Copy constructor: makes a copy of the original object
00055         Group(const Group& original);
00056 
00057         // Gets the group id.
00058         virtual hid_t getId() const;
00059 
00060         // Destructor
00061         virtual ~Group();
00062 
00063         // Creates a copy of an existing group using its id.
00064         Group( const hid_t group_id );
00065 
00066    private:
00067         hid_t id;       // HDF5 group id
00068 
00069    protected:
00070         // Sets the group id.
00071         virtual void p_setId(const hid_t new_id);
00072 };
00073 #ifndef H5_NO_NAMESPACE
00074 }
00075 #endif
00076 #endif

Generated on Tue May 10 09:27:56 2011 by  doxygen 1.4.7