My Project  1.10.11
H5OcreatProp.h
1 // C++ informative line for the emacs editor: -*- C++ -*-
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * Copyright by The HDF Group. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF5. The full HDF5 copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://www.hdfgroup.org/licenses. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 #ifndef H5ObjCreatPropList_H
15 #define H5ObjCreatPropList_H
16 
17 namespace H5 {
18 
23 // Inheritance: PropList -> IdComponent
24 class H5_DLLCPP ObjCreatPropList : public PropList {
25  public:
27  static const ObjCreatPropList &DEFAULT;
28 
29  // Creates a object creation property list.
31 
32  // Sets attribute storage phase change thresholds.
33  void setAttrPhaseChange(unsigned max_compact = 8, unsigned min_dense = 6) const;
34 
35  // Gets attribute storage phase change thresholds.
36  void getAttrPhaseChange(unsigned &max_compact, unsigned &min_dense) const;
37 
38  // Sets tracking and indexing of attribute creation order.
39  void setAttrCrtOrder(unsigned crt_order_flags) const;
40 
41  // Gets tracking and indexing settings for attribute creation order.
42  unsigned getAttrCrtOrder() const;
43 
45  virtual H5std_string
46  fromClass() const
47  {
48  return ("ObjCreatPropList");
49  }
50 
51  // Copy constructor: same as the original ObjCreatPropList.
52  ObjCreatPropList(const ObjCreatPropList &original);
53 
54  // Creates a copy of an existing object creation property list
55  // using the property list id.
56  ObjCreatPropList(const hid_t plist_id);
57 
58  // Noop destructor
59  virtual ~ObjCreatPropList();
60 
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 
63  // Deletes the global constant, should only be used by the library
64  static void deleteConstants();
65 
66  private:
67  static ObjCreatPropList *DEFAULT_;
68 
69  // Creates the global constant, should only be used by the library
70  static ObjCreatPropList *getConstant();
71 
72 #endif // DOXYGEN_SHOULD_SKIP_THIS
73 
74 }; // end of ObjCreatPropList
75 } // namespace H5
76 
77 #endif // H5ObjCreatPropList_H
H5::PropListIException
Definition: H5Exception.h:123
H5::ObjCreatPropList::setAttrPhaseChange
void setAttrPhaseChange(unsigned max_compact=8, unsigned min_dense=6) const
Sets attribute storage phase change thresholds.
Definition: H5OcreatProp.cpp:127
H5::ObjCreatPropList::fromClass
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5OcreatProp.h:46
H5::ObjCreatPropList::DEFAULT
static const ObjCreatPropList & DEFAULT
Default object creation property list.
Definition: H5OcreatProp.h:27
H5::ObjCreatPropList::setAttrCrtOrder
void setAttrCrtOrder(unsigned crt_order_flags) const
Set the flags for creation order of attributes on an object.
Definition: H5OcreatProp.cpp:179
H5::ObjCreatPropList::~ObjCreatPropList
virtual ~ObjCreatPropList()
Noop destructor.
Definition: H5OcreatProp.cpp:217
H5::ObjCreatPropList::getAttrCrtOrder
unsigned getAttrCrtOrder() const
Returns the flags indicating creation order is tracked/indexed for attributes on an object.
Definition: H5OcreatProp.cpp:201
H5
Definition: H5AbstractDs.cpp:33
H5::ObjCreatPropList::ObjCreatPropList
ObjCreatPropList()
Creates a file access property list.
Definition: H5OcreatProp.cpp:88
H5::ObjCreatPropList
Class ObjCreatPropList inherits from PropList and provides wrappers for the HDF5 object create proper...
Definition: H5OcreatProp.h:24
H5::PropList
Class PropList inherits from IdComponent and provides wrappers for the HDF5 generic property list.
Definition: H5PropList.h:24
H5::ObjCreatPropList::getAttrPhaseChange
void getAttrPhaseChange(unsigned &max_compact, unsigned &min_dense) const
Gets attribute storage phase change thresholds.
Definition: H5OcreatProp.cpp:150


The HDF Group Help Desk:
  Copyright by The HDF Group