h5cpp
0.5.0
A modern C++ wrapper for the HDF5 C library
|
Go to the documentation of this file.
89 File &operator=(
const File &) =
default;
110 ssize_t buffer_size()
const;
118 void flush(
Scope scope)
const;
132 fs::path path()
const;
154 explicit operator hid_t()
const
156 return static_cast<hid_t
>(handle_);
169 size_t to_buffer(T &data)
const;
185 size_t to_buffer_reshape(T &data,
197 bool is_valid()
const;
224 size_t databytesize = signed2unsigned<unsigned long long>(mem_space.
size()) * mem_type.
size();
229 s = H5Fget_file_image(
static_cast<hid_t
>(*
this),
dataspace::ptr(data), databytesize);
237 std::stringstream ss;
238 ss<<
"Failure retrieving the image buffer to non-integer dataspace";
241 return static_cast<hsize_t
>(s);
TypeTrait< T >::DataspaceType create(const T &value)
factory function for dataspaces
Definition: type_trait.hpp:89
virtual size_t size() const
get size of type in bytes
const Datatype & get(const T &v=T())
factory holder method for getting reference of data types
Definition: factory.hpp:74
data type object holder
Definition: factory.hpp:53
Class get_class() const
returns the datatypes class
std::underlying_type< SearchFlags >::type SearchFlagsBase
Definition: types.hpp:102
size_t to_buffer(T &data) const
retrieve a copy of the image of an existing, open file
Definition: file.hpp:212
Unique ID of an HDF5 object.
Definition: object_id.hpp:50
void * ptr(T &value)
Definition: type_trait.hpp:111
static Singleton & instance()
reference to singleton
Definition: error.hpp:59
void flush(Scope scope) const
flush the file
void throw_with_stack(const std::string &message)
throws an exception, potentially nested with error stack
size_t to_buffer_reshape(T &data, const datatype::Datatype &mem_type, const dataspace::Dataspace &mem_space) const
retrieve a copy of the image of an existing, open file
Definition: file.hpp:220
AccessFlags
flags controlling file opening and creation
Definition: types.hpp:39
Wrapper for hid_t object identifiers.
Definition: object_handle.hpp:66
@ Integer
indicates an integer type
#define DLL_EXPORT
Definition: windows.hpp:29
dataspace base class
Definition: dataspace.hpp:41
SearchFlags
flags controlling object search in a file
Definition: types.hpp:91
virtual hssize_t size() const
number of elements in the dataspace
Definition: group_access.hpp:35
Scope
file scope
Definition: types.hpp:117
base class for all data types
Definition: datatype.hpp:41
top-level namespace of the entire library
Definition: attribute.hpp:45