My Project 1.10.8
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 COPYING file, which can be found at the root of the source code *
10 * distribution tree, or in https://www.hdfgroup.org/licenses. *
11 * If you do not have access to either file, you may request a copy from *
12 * help@hdfgroup.org. *
13 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
14
15#ifndef H5Library_H
16#define H5Library_H
17
18namespace H5 {
19
26class H5_DLLCPP H5Library {
27 public:
28 // Initializes the HDF5 library.
29 static void open();
30
31 // Flushes all data to disk, closes files, and cleans up memory.
32 static void close();
33
34 // Instructs library not to install atexit cleanup routine
35 static void dontAtExit();
36
37 // Returns the HDF library release number.
38 static void getLibVersion(unsigned &majnum, unsigned &minnum, unsigned &relnum);
39
40 // Verifies that the arguments match the version numbers compiled
41 // into the library
42 static void checkVersion(unsigned majnum, unsigned minnum, unsigned relnum);
43
44 // Walks through all the garbage collection routines for the library,
45 // which are supposed to free any unused memory they have allocated.
46 static void garbageCollect();
47
48 // Sets limits on the different kinds of free lists.
49 static void setFreeListLimits(int reg_global_lim, int reg_list_lim, int arr_global_lim, int arr_list_lim,
50 int blk_global_lim, int blk_list_lim);
51
52 // Initializes C++ library and registers terminating functions at exit.
53 // Only for the library functions, not for user-defined functions.
54 static void initH5cpp(void);
55
56 // Sends request for terminating the HDF5 library.
57 static void termH5cpp(void);
58
59#ifndef DOXYGEN_SHOULD_SKIP_THIS
60
61 private:
62 // Default constructor - no instance ever created from outsiders
63 H5Library();
64
65 // Destructor
66 ~H5Library();
67#endif // DOXYGEN_SHOULD_SKIP_THIS
68
69}; // end of H5Library
70} // namespace H5
71
72#endif // H5Library_H
Class H5Library operates the HDF5 library globably.
Definition: H5Library.h:26
Definition: H5AbstractDs.cpp:34


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