54 explicit File(
const std::string& filename,
66 File(
const std::string& filename,
74 const std::string&
getName() const noexcept;
88#if H5_VERSION_GE(1, 10, 1)
90 H5F_fspace_strategy_t getFileSpaceStrategy()
const;
93 hsize_t getFileSpacePageSize()
const;
105 return details::get_plist<FileCreateProps>(*
this, H5Fget_create_plist);
110 return details::get_plist<FileAccessProps>(*
this, H5Fget_access_plist);
129 mutable std::string _filename{};
Definition H5Annotate_traits.hpp:18
File class.
Definition H5File.hpp:24
FileCreateProps getCreatePropertyList() const
Get the list of properties for creation of this file.
Definition H5File.hpp:104
size_t getFileSize() const
Get the size of this file in bytes.
Definition H5File_misc.hpp:128
std::pair< H5F_libver_t, H5F_libver_t > getVersionBounds() const
Returns the HDF5 version compatibility bounds.
Definition H5File_misc.hpp:99
void flush()
flush
Definition H5File_misc.hpp:124
size_t getFreeSpace() const
Get the amount of tracked, unused space in bytes.
Definition H5File_misc.hpp:134
FileAccessProps getAccessPropertyList() const
Get the list of properties for accession of this file.
Definition H5File.hpp:109
hsize_t getMetadataBlockSize() const
Returns the block size for metadata in bytes.
Definition H5File_misc.hpp:94
@ OpenOrCreate
Derived open flag: Opens RW or exclusively creates.
Definition H5File.hpp:44
@ Overwrite
Derived open flag: common write mode (=ReadWrite|Create|Truncate)
Definition H5File.hpp:42
@ Truncate
Open flag: Truncate a file if already existing.
Definition H5File.hpp:34
@ Create
Open flag: Create non existing file.
Definition H5File.hpp:40
@ ReadOnly
Open flag: Read only access.
Definition H5File.hpp:30
@ ReadWrite
Open flag: Read Write access.
Definition H5File.hpp:32
@ Debug
Open flag: Open in debug mode.
Definition H5File.hpp:38
@ Excl
Open flag: Open will fail if file already exist.
Definition H5File.hpp:36
static const ObjectType type
Definition H5File.hpp:26
std::string getPath() const noexcept
Object path of a File is always "/".
Definition H5File.hpp:78
const std::string & getName() const noexcept
Return the name of the file.
Definition H5File_misc.hpp:85
NodeTraits: Base class for Group and File.
Definition H5Node_traits.hpp:28
Definition H5Object.hpp:54
Object()
Definition H5Object_misc.hpp:25
Definition H5Path_traits.hpp:16
HDF5 property Lists.
Definition H5PropertyList.hpp:160
static const PropertyList< T > & Default() noexcept
Return the Default property type object.
Definition H5PropertyList.hpp:178
Definition H5_definitions.hpp:22
ObjectType
Enum of the types of objects (H5O api)
Definition H5Object.hpp:24