HDF5 C++ API Reference Manual

 

 

 

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

H5PropList.h

Go to the documentation of this file.
00001 // C++ informative line for the emacs editor: -*- C++ -*-
00002 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00003   * Copyright by the Board of Trustees of the University of Illinois.         *
00004   * All rights reserved.                                                      *
00005   *                                                                           *
00006   * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00007   * terms governing use, modification, and redistribution, is contained in    *
00008   * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00009   * of the source code distribution tree; Copyright.html can be found at the  *
00010   * root level of an installed copy of the electronic HDF5 document set and   *
00011   * is linked from the top-level documents page.  It can also be found at     *
00012   * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html.  If you do not have     *
00013   * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
00014   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 #ifndef _H5PropList_H
00017 #define _H5PropList_H
00018 
00019 #ifndef H5_NO_NAMESPACE
00020 namespace H5 {
00021 #endif
00022 
00023 class H5_DLLCPP PropList : public IdComponent {
00024    public:
00025         // Default property list
00026         static const PropList DEFAULT;
00027 
00028         // Creates a property list of a given type or creates a copy of an 
00029         // existing property list giving the property list id.
00030         PropList(const hid_t plist_id);
00031 
00032         // Make a copy of the given property list using assignment statement
00033         PropList& operator=( const PropList& rhs );
00034 
00035         // Compares this property list or class against the given list or class.
00036         bool operator==(const PropList& rhs) const;
00037 
00038         // Close this property list.
00039         virtual void close();
00040 
00041         // Close a property list class.
00042         void closeClass() const;
00043 
00044         // Makes a copy of the given property list.
00045         void copy( const PropList& like_plist );
00046 
00047         // Copies a property from one property list or property class to another
00048         void copyProp( PropList& dest, PropList& src, const char* name) const;
00049         void copyProp( PropList& dest, PropList& src, const string& name) const;
00050 
00051         // Gets the class of this property list, i.e. H5P_FILE_CREATE,
00052         // H5P_FILE_ACCESS, ...
00053         hid_t getClass() const;
00054 
00055         // Return the name of a generic property list class.
00056         string getClassName() const;
00057 
00058         // Returns the parent class of a generic property class.
00059         PropList getClassParent() const;
00060 
00061         // Returns the number of properties in this property list or class.
00062         size_t getNumProps() const;
00063 
00064         // Query the value of a property in a property list.
00065         void getProperty(const char* name, void* value) const;
00066         string getProperty(const char* name) const;
00067         void getProperty(const string& name, void* value) const;
00068         string getProperty(const string& name) const;
00069 
00070         // Set a property's value in a property list.
00071         void setProperty(const char* name, void* charptr) const;
00072         void setProperty(const char* name, const char* value) const;
00073         void setProperty(const char* name, string& strg) const;
00074         void setProperty(const string& name, void* value) const;
00075         void setProperty(const string& name, string& strg) const;
00076 
00077         // Query the size of a property in a property list or class.
00078         size_t getPropSize(const char *name) const;
00079         size_t getPropSize(const string& name) const;
00080 
00081         // Determines whether a property list is a certain class.
00082         bool isAClass(const PropList& prop_class) const;
00083 
00085         bool propExist(const char* name) const;
00086         bool propExist(const string& name) const;
00087 
00088         // Removes a property from a property list.
00089         void removeProp(const char *name) const;
00090         void removeProp(const string& name) const;
00091 
00092         // Default constructor: creates a stub PropList object.
00093         PropList();
00094 
00095         // Copy constructor: creates a copy of a PropList object.
00096         PropList(const PropList& original);
00097 
00098         // Destructor: properly terminates access to this property list.
00099         virtual ~PropList();
00100 };
00101 
00102 #ifndef H5_NO_NAMESPACE
00103 }
00104 #endif
00105 #endif  // _H5PropList_H

Generated on Sat Apr 23 16:19:45 2005 by  doxygen 1.4.2