#include <file.hpp>
◆ File() [1/4]
hdf5::file::File::File |
( |
| ) |
|
|
default |
Use default implementation here. We need this to store instances of this class in an STL container. A default constructed instance of File is in an invalid state. This can be checked using the is_valid() method.
- See also
- is_valid()
◆ File() [2/4]
hdf5::file::File::File |
( |
const File & |
| ) |
|
|
default |
Use default implementation here.
◆ File() [3/4]
hdf5::file::File::File |
( |
File && |
| ) |
|
|
default |
Use default implementation here.
◆ File() [4/4]
Construct a file from an rvalue reference to a handle.
- Parameters
-
handle | rvalue reference to the file handler |
◆ buffer_size()
ssize_t hdf5::file::File::buffer_size |
( |
| ) |
const |
- Exceptions
-
std::runtime_error | in case of a failure |
◆ close()
void hdf5::file::File::close |
( |
| ) |
|
- Exceptions
-
std::runtime_error | in case of a failure |
◆ count_open_objects() [1/2]
size_t hdf5::file::File::count_open_objects |
( |
SearchFlags |
flag | ) |
const |
Return the number of open objects belonging to that very file instance.
◆ count_open_objects() [2/2]
◆ flush()
void hdf5::file::File::flush |
( |
Scope |
scope | ) |
const |
- Exceptions
-
std::runtime_error | in case of a failure |
- Parameters
-
scope | the scope within which the file should be flushed |
◆ id()
Return an instance of ObjectId which uniquely identifies a file object.
◆ intent()
- Exceptions
-
std::runtime_error | in case of a failure |
◆ is_valid()
bool hdf5::file::File::is_valid |
( |
| ) |
const |
Return true if the instance refers to a valid HDF5 file instance.
- Exceptions
-
std::runtime_error | in case of a failure |
- Returns
- true if valid, false otherwise
◆ operator hid_t()
hdf5::file::File::operator hid_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=()
File& hdf5::file::File::operator= |
( |
const File & |
| ) |
|
|
default |
◆ path()
fs::path hdf5::file::File::path |
( |
| ) |
const |
Return the file system path of the file.
◆ root()
Return an instance to the root group of the file.
- Exceptions
-
std::runtime_error | in case of a failure |
- Parameters
-
gapl | reference to a group access property list |
- Returns
- new instance of node::Group
◆ size()
size_t hdf5::file::File::size |
( |
| ) |
const |
- Exceptions
-
std::runtime_error | in case of a failure |
◆ to_buffer()
template<typename T >
size_t hdf5::file::File::to_buffer |
( |
T & |
data | ) |
const |
- Exceptions
-
std::runtime_error | in case of a failure |
- Template Parameters
-
- Parameters
-
data | reference to the source instance of T |
- Returns
- size of used space in a buffer
- See also
- ImageFlags
◆ to_buffer_reshape()
It reshapes the mem_space if its rank does not match to the selection rank
- Exceptions
-
std::runtime_error | in case of a failure |
- Template Parameters
-
- Parameters
-
data | reference to the source instance of T |
mem_type | reference to the memory data type |
mem_space | reference to the memory data space |
- Returns
- size of used space in a buffer
- See also
- ImageFlags
The documentation for this class was generated from the following file:
- /home/jenkins/h5cpp/src/h5cpp/file/file.hpp