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 [email protected]. *
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 this property list or class to another
00048         void copyProp( PropList& dest, const char* name) const;
00049         void copyProp( PropList& dest, const string& name) const;
00050 
00051         // Copies a property from one property list or property class to another
00052         void copyProp( PropList& dest, PropList& src, const char* name) const;
00053         void copyProp( PropList& dest, PropList& src, const string& name) const;
00054 
00055         // Gets the class of this property list, i.e. H5P_FILE_CREATE,
00056         // H5P_FILE_ACCESS, ...
00057         hid_t getClass() const;
00058 
00059         // Return the name of a generic property list class.
00060         string getClassName() const;
00061 
00062         // Returns the parent class of a generic property class.
00063         PropList getClassParent() const;
00064 
00065         // Returns the number of properties in this property list or class.
00066         size_t getNumProps() const;
00067 
00068         // Query the value of a property in a property list.
00069         void getProperty(const char* name, void* value) const;
00070         void getProperty(const string& name, void* value) const;
00071         string getProperty(const char* name) const;
00072         string getProperty(const string& name) const;
00073 
00074         // Set a property's value in a property list.
00075         void setProperty(const char* name, void* value) const;
00076         void setProperty(const char* name, const char* charptr) const;
00077         void setProperty(const char* name, string& strg) const;
00078         void setProperty(const string& name, void* value) const;
00079         void setProperty(const string& name, string& strg) const;
00080 
00081         // Query the size of a property in a property list or class.
00082         size_t getPropSize(const char *name) const;
00083         size_t getPropSize(const string& name) const;
00084 
00085         // Determines whether a property list is a certain class.
00086         bool isAClass(const PropList& prop_class) const;
00087 
00089         bool propExist(const char* name) const;
00090         bool propExist(const string& name) const;
00091 
00092         // Removes a property from a property list.
00093         void removeProp(const char *name) const;
00094         void removeProp(const string& name) const;
00095 
00096         // Returns this class name
00097         virtual string fromClass () const { return ("PropList"); }
00098 
00099         // Default constructor: creates a stub PropList object.
00100         PropList();
00101 
00102         // Copy constructor: creates a copy of a PropList object.
00103         PropList(const PropList& original);
00104 
00105         // Destructor: properly terminates access to this property list.
00106         virtual ~PropList();
00107 };
00108 
00109 #ifndef H5_NO_NAMESPACE
00110 }
00111 #endif
00112 #endif  // _H5PropList_H

Generated on Mon Oct 31 04:59:47 2005 by  doxygen 1.4.2