88 File &operator=(
const File &) =
default;
109 ssize_t buffer_size()
const;
117 void flush(
Scope scope)
const;
131 fs::path path()
const;
153 explicit operator hid_t()
const 155 return static_cast<hid_t
>(handle_);
168 size_t to_buffer(T &data)
const;
178 bool is_valid()
const;
193 size_t File::to_buffer(T &data)
const 197 size_t databytesize = memory_space.size() * memory_type.size();
201 flush(Scope::GLOBAL);
202 s = H5Fget_file_image(static_cast<hid_t>(*
this),
dataspace::ptr(data), databytesize);
210 std::stringstream ss;
211 ss<<
"Failure retrieving the image buffer to non-integer dataspace";
TypeTrait< T >::DataspaceType create(const T &value)
factory function for dataspaces
Definition: type_trait.hpp:115
static Singleton & instance()
reference to singleton
Definition: error.hpp:50
void throw_with_stack(const std::string &message)
throws an exception, potentially nested with error stack
indicates an integer type
Definition: group_access.hpp:35
Wrapper for hid_t object identifiers.
Definition: object_handle.hpp:66
SearchFlags
flags controlling object search in a file
Definition: types.hpp:79
Definition: attribute.hpp:43
Scope
file scope
Definition: types.hpp:101
TypeTrait< typename std::remove_const< T >::type >::TypeClass create(const T &v=T())
factory function for creating data types
Definition: factory.hpp:38
void * ptr(T &value)
Definition: type_trait.hpp:120
#define DLL_EXPORT
Definition: windows.hpp:35
std::underlying_type< SearchFlags >::type SearchFlagsBase
Definition: types.hpp:90
Unique ID of an HDF5 object.
Definition: object_id.hpp:50
AccessFlags
flags controlling file opening and creation
Definition: types.hpp:37