HDF5 C++ API  1.8.18
 All Classes Namespaces Functions Variables Typedefs Friends Pages
H5FcreatProp.h
1 // C++ informative line for the emacs editor: -*- C++ -*-
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * Copyright by The HDF Group. *
4  * Copyright by the Board of Trustees of the University of Illinois. *
5  * All rights reserved. *
6  * *
7  * This file is part of HDF5. The full HDF5 copyright notice, including *
8  * terms governing use, modification, and redistribution, is contained in *
9  * the files COPYING and Copyright.html. COPYING can be found at the root *
10  * of the source code distribution tree; Copyright.html can be found at the *
11  * root level of an installed copy of the electronic HDF5 document set and *
12  * is linked from the top-level documents page. It can also be found at *
13  * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
14  * access to either file, you may request a copy from help@hdfgroup.org. *
15  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
16 
17 #ifndef __H5FileCreatPropList_H
18 #define __H5FileCreatPropList_H
19 
20 namespace H5 {
21 
23 class H5_DLLCPP FileCreatPropList : public PropList {
24  public:
26  static const FileCreatPropList& DEFAULT;
27 
28  // Creates a file create property list.
30 
31  // Retrieves version information for various parts of a file.
32  void getVersion( unsigned& super, unsigned& freelist, unsigned& stab, unsigned& shhdr ) const;
33 
34  // Sets the userblock size field of a file creation property list.
35  void setUserblock( hsize_t size ) const;
36 
37  // Gets the size of a user block in this file creation property list.
38  hsize_t getUserblock() const;
39 
40  // Retrieves the size-of address and size quantities stored in a
41  // file according to this file creation property list.
42  void getSizes( size_t& sizeof_addr, size_t& sizeof_size ) const;
43 
44  // Sets file size-of addresses and sizes.
45  void setSizes( size_t sizeof_addr = 4, size_t sizeof_size = 4 ) const;
46 
47  // Retrieves the size of the symbol table B-tree 1/2 rank and the
48  // symbol table leaf node 1/2 size.
49  void getSymk( unsigned& int_nodes_k, unsigned& leaf_nodes_k ) const;
50 
51  // Sets the size of parameters used to control the symbol table nodes.
52  void setSymk( unsigned int_nodes_k, unsigned leaf_nodes_k ) const;
53 
54  // Returns the 1/2 rank of an indexed storage B-tree.
55  unsigned getIstorek() const;
56 
57  // Sets the size of parameter used to control the B-trees for
58  // indexing chunked datasets.
59  void setIstorek( unsigned ik ) const;
60 
62  virtual H5std_string fromClass () const { return("FileCreatPropList"); }
63 
64  // Copy constructor: creates a copy of a FileCreatPropList object.
66 
67  // Creates a copy of an existing file create property list
68  // using the property list id.
69  FileCreatPropList (const hid_t plist_id);
70 
71  // Noop destructor
72  virtual ~FileCreatPropList();
73 
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75 
76  // Deletes the global constant, should only be used by the library
77  static void deleteConstants();
78 
79  private:
80  static FileCreatPropList* DEFAULT_;
81 
82  // Creates the global constant, should only be used by the library
83  static FileCreatPropList* getConstant();
84 
85 #endif // DOXYGEN_SHOULD_SKIP_THIS
86 
87 };
88 }
89 #endif // __H5FileCreatPropList_H
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5FcreatProp.h:62
static const FileCreatPropList & DEFAULT
Default file creation property list.
Definition: H5FcreatProp.h:26
Class FileCreatPropList represents the HDF5 file create property list.
Definition: H5FcreatProp.h:23
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:23


The HDF Group Help Desk:
  Copyright by The HDF Group
and the Board of Trustees of the University of Illinois