HDF5 C++ API Reference Manual

 

 

Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Examples

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 help@hdfgroup.org.     *
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 
00037         // Returns this class name
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, void* ref);
00048         Group(H5File& obj, void* ref);
00049 
00050         // default constructor
00051         Group();
00052 
00053         // Copy constructor: makes a copy of the original object
00054         Group(const Group& original);
00055 
00056         // Gets the group id.
00057         virtual hid_t getId() const;
00058         virtual void setId(const hid_t new_id);
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 #ifndef H5_NO_NAMESPACE
00070 }
00071 #endif
00072 #endif

Generated on Fri May 23 18:50:11 2008 by  doxygen 1.3.9.1