HDF5 C++ API  1.8.17
 All Classes Namespaces Functions Variables Typedefs Friends Pages
H5Library.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 __H5Library_H
18 #define __H5Library_H
19 
20 #ifndef H5_NO_NAMESPACE
21 namespace H5 {
22 #endif
23 
30 class H5_DLLCPP H5Library {
31  public:
32  // Initializes the HDF5 library.
33  static void open();
34 
35  // Flushes all data to disk, closes files, and cleans up memory.
36  static void close();
37 
38  // Instructs library not to install atexit cleanup routine
39  static void dontAtExit();
40 
41  // Returns the HDF library release number.
42  static void getLibVersion( unsigned& majnum, unsigned& minnum, unsigned& relnum );
43 
44  // Verifies that the arguments match the version numbers compiled
45  // into the library
46  static void checkVersion( unsigned majnum, unsigned minnum, unsigned relnum );
47 
48  // Walks through all the garbage collection routines for the library,
49  // which are supposed to free any unused memory they have allocated.
50  static void garbageCollect();
51 
52  // Sets limits on the different kinds of free lists.
53  static void setFreeListLimits(int reg_global_lim, int reg_list_lim, int
54  arr_global_lim, int arr_list_lim, int blk_global_lim, int blk_list_lim);
55 
56  // Initializes C++ library and registers terminating functions at exit.
57  // Only for the library functions, not for user-defined functions.
58  static void initH5cpp(void);
59 
60  // Sends request for terminating the HDF5 library.
61  static void termH5cpp(void);
62 
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64 
65  private:
66 
67  // Default constructor - no instance ever created from outsiders
68  H5Library();
69 
70  // Destructor
71  ~H5Library();
72 #endif // DOXYGEN_SHOULD_SKIP_THIS
73 
74 };
75 #ifndef H5_NO_NAMESPACE
76 }
77 #endif
78 #endif // __H5Library_H
Class H5Library operates the HDF5 library globably.
Definition: H5Library.h:30


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