Purpose: Add new C++ wrappers
Description:
Because H5Pset_file_space and H5Pget_file_space are deprecated, changed
to make wrappers for the new functions instead:
H5Ps/get_file_space_strategy
H5Ps/get_file_space_page_size
New wrappers in FileCreatPropList:
// Sets the strategy and the threshold value that the library will
// will employ in managing file space.
void setFileSpaceStrategy(H5F_fspace_strategy_t strategy, hbool_t persist, hsize_t threshold) const;
// Returns the strategy that the library uses in managing file space.
void getFileSpaceStrategy(H5F_fspace_strategy_t& strategy, hbool_t& persist, hsize_t& threshold) const;
// Sets the file space page size for paged aggregation.
void setFileSpacePagesize(hsize_t fsp_psize) const;
// Returns the threshold value that the library uses in tracking free
// space sections.
hsize_t getFileSpacePagesize() const;
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
This commit is contained in:
@@ -67,14 +67,17 @@ class H5_DLLCPP FileCreatPropList : public PropList {
|
||||
|
||||
// Sets the strategy and the threshold value that the library will
|
||||
// will employ in managing file space.
|
||||
void setFileSpace(H5F_file_space_type_t strategy, hsize_t threshold) const;
|
||||
void setFileSpaceStrategy(H5F_fspace_strategy_t strategy, hbool_t persist, hsize_t threshold) const;
|
||||
|
||||
// Returns the strategy that the library uses in managing file space.
|
||||
H5F_file_space_type_t getFileSpaceStrategy() const;
|
||||
void getFileSpaceStrategy(H5F_fspace_strategy_t& strategy, hbool_t& persist, hsize_t& threshold) const;
|
||||
|
||||
// Sets the file space page size for paged aggregation.
|
||||
void setFileSpacePagesize(hsize_t fsp_psize) const;
|
||||
|
||||
// Returns the threshold value that the library uses in tracking free
|
||||
// space sections.
|
||||
hsize_t getFileSpaceThreshold() const;
|
||||
hsize_t getFileSpacePagesize() const;
|
||||
|
||||
///\brief Returns this class name.
|
||||
virtual H5std_string fromClass() const { return("FileCreatPropList"); }
|
||||
|
||||
Reference in New Issue
Block a user