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 // Make a copy of the given property list using assignment statement 00029 PropList& operator=( const PropList& rhs ); 00030 00031 // Compares this property list or class against the given list or class. 00032 bool operator==(const PropList& rhs) const; 00033 00034 // Close a property list class. 00035 void closeClass() const; 00036 00037 // Makes a copy of the given property list. 00038 void copy( const PropList& like_plist ); 00039 00040 // Copies a property from one property list or property class to another 00041 void copyProp( PropList& dest, PropList& src, const char* name) const; 00042 void copyProp( PropList& dest, PropList& src, const string& name) const; 00043 00044 // Gets the class of this property list, i.e. H5P_FILE_CREATE, 00045 // H5P_FILE_ACCESS, ... 00046 hid_t getClass() const; 00047 00048 // Return the name of a generic property list class. 00049 string getClassName() const; 00050 00051 // Returns the parent class of a generic property class. 00052 PropList getClassParent() const; 00053 00054 // Returns the number of properties in this property list or class. 00055 size_t getNumProps() const; 00056 00057 // Query the value of a property in a property list. 00058 void getProperty(const char* name, void* value) const; 00059 string getProperty(const char* name) const; 00060 void getProperty(const string& name, void* value) const; 00061 string getProperty(const string& name) const; 00062 00063 // Set a property's value in a property list. 00064 void setProperty(const char* name, void* charptr) const; 00065 void setProperty(const char* name, const char* value) const; 00066 void setProperty(const char* name, string& strg) const; 00067 void setProperty(const string& name, void* value) const; 00068 void setProperty(const string& name, string& strg) const; 00069 00070 // Query the size of a property in a property list or class. 00071 size_t getPropSize(const char *name) const; 00072 size_t getPropSize(const string& name) const; 00073 00074 // Determines whether a property list is a certain class. 00075 bool isAClass(const PropList& prop_class) const; 00076 00078 bool propExist(const char* name) const; 00079 bool propExist(const string& name) const; 00080 00081 // Removes a property from a property list. 00082 void removeProp(const char *name) const; 00083 void removeProp(const string& name) const; 00084 00085 // Default constructor: creates a stub PropList object. 00086 PropList(); 00087 00088 // Creates a property list of a given type or creates a copy of an 00089 // existing property list giving the property list id. 00090 PropList(const hid_t plist_id); 00091 00092 // Copy constructor: creates a copy of a PropList object. 00093 PropList(const PropList& original); 00094 00095 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00096 // Used by the API to close the property list. 00097 void p_close() const; 00098 #endif // DOXYGEN_SHOULD_SKIP_THIS 00099 00100 // Destructor: properly terminates access to this property list. 00101 virtual ~PropList(); 00102 }; 00103 00104 #ifndef H5_NO_NAMESPACE 00105 } 00106 #endif 00107 #endif // _H5PropList_H

Generated on Thu Aug 5 00:22:37 2004 by doxygen 1.3.7-20040718