H5DaccProp.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #ifndef H5DSetAccPropList_H
  15. #define H5DSetAccPropList_H
  16. namespace H5 {
  17. /*! \class DSetAccPropList
  18. \brief Class DSetAccPropList inherits from LinkAccPropList and provides
  19. wrappers for the HDF5 dataset access property functions.
  20. */
  21. // Inheritance: LinkAccPropList -> PropList -> IdComponent
  22. class H5_DLLCPP DSetAccPropList : public LinkAccPropList {
  23. public:
  24. ///\brief Default dataset creation property list.
  25. static const DSetAccPropList &DEFAULT;
  26. // Creates a dataset creation property list.
  27. DSetAccPropList();
  28. // Sets the raw data chunk cache parameters.
  29. void setChunkCache(size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0) const;
  30. // Retrieves the raw data chunk cache parameters.
  31. void getChunkCache(size_t &rdcc_nslots, size_t &rdcc_nbytes, double &rdcc_w0) const;
  32. ///\brief Returns this class name.
  33. virtual H5std_string
  34. fromClass() const override
  35. {
  36. return ("DSetAccPropList");
  37. }
  38. // Copy constructor - same as the original DSetAccPropList.
  39. DSetAccPropList(const DSetAccPropList &orig);
  40. // Creates a copy of an existing dataset creation property list
  41. // using the property list id.
  42. DSetAccPropList(const hid_t plist_id);
  43. // Noop destructor.
  44. virtual ~DSetAccPropList() override;
  45. #ifndef DOXYGEN_SHOULD_SKIP_THIS
  46. // Deletes the global constant, should only be used by the library
  47. static void deleteConstants();
  48. private:
  49. static DSetAccPropList *DEFAULT_;
  50. // Creates the global constant, should only be used by the library
  51. static DSetAccPropList *getConstant();
  52. #endif // DOXYGEN_SHOULD_SKIP_THIS
  53. }; // end of DSetAccPropList
  54. } // namespace H5
  55. #endif // H5DSetAccPropList_H