HDF5 C++ API  1.8.16
 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 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33  static bool need_cleanup; // indicates if H5close should be called
34  // - unused, will be removed in future releases.
35 #endif // DOXYGEN_SHOULD_SKIP_THIS
36 
37  // Initializes the HDF5 library.
38  static void open();
39 
40  // Flushes all data to disk, closes files, and cleans up memory.
41  static void close();
42 
43  // Instructs library not to install atexit cleanup routine
44  static void dontAtExit();
45 
46  // Returns the HDF library release number.
47  static void getLibVersion( unsigned& majnum, unsigned& minnum, unsigned& relnum );
48 
49  // Verifies that the arguments match the version numbers compiled
50  // into the library
51  static void checkVersion( unsigned majnum, unsigned minnum, unsigned relnum );
52 
53  // Walks through all the garbage collection routines for the library,
54  // which are supposed to free any unused memory they have allocated.
55  static void garbageCollect();
56 
57  // Sets limits on the different kinds of free lists.
58  static void setFreeListLimits(int reg_global_lim, int reg_list_lim, int
59  arr_global_lim, int arr_list_lim, int blk_global_lim, int blk_list_lim);
60 
61  // Initializes C++ library and registers terminating functions at exit.
62  // Only for the library functions, not for user-defined functions.
63  static void initH5cpp(void);
64 
65  // Sends request for terminating the HDF5 library.
66  static void termH5cpp(void);
67 
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69 
70  private:
71 
72  // Default constructor - no instance ever created from outsiders
73  H5Library();
74 
75  // Destructor
76  ~H5Library();
77 #endif // DOXYGEN_SHOULD_SKIP_THIS
78 
79 };
80 #ifndef H5_NO_NAMESPACE
81 }
82 #endif
83 #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