|
void | swap (HDFFile &other) |
| Function for exchanging states.
|
|
void | open (std::string path, std::string access) |
| Open a file at location 'path' with access specifier 'access'. Keep in mind that if the object refers to another file, it has to be closed first before opening another.
|
|
std::shared_ptr< HDFGroup > | get_basegroup () |
| Get the basegroup object via shared ptr.
|
|
std::shared_ptr< HDFGroup > | open_group (std::string path) |
| Open group at path 'path', creating all intermediate objects in the path. Separation character is: /.
|
|
std::shared_ptr< HDFDataset > | open_dataset (std::string path, std::vector< hsize_t > capacity={}, std::vector< hsize_t > chunksizes={}, std::size_t compresslevel=0) |
| open dataset
|
|
void | delete_group (std::string &&path) |
| deletes the group pointed to by absolute path 'path'
|
|
void | flush () |
| Initiates an immediate write to disk of the data of the file.
|
|
| HDFFile ()=default |
| Construct a new default HDFFile object.
|
|
| HDFFile (HDFFile &&other)=default |
| Move constructor Construct a new HDFFile object via move semantics.
|
|
HDFFile & | operator= (const HDFFile &other)=delete |
| Copy assignment operator, explicitly deleted, hence cannot be used.
|
|
HDFFile & | operator= (HDFFile &&other)=default |
| Move assigment operator.
|
|
| HDFFile (const HDFFile &other)=delete |
| Copy constructor. Explicitly deleted, hence cannot be used.
|
|
| HDFFile (std::string path, std::string access) |
| Construct a new HDFFile object.
|
|
virtual | ~HDFFile ()=default |
| Destroy the HDFFile object.
|
|
void | swap (HDFObject &other) |
| swap the state of the caller with the state of the argument
|
|
std::string | get_path () const |
| Get the name or path object.
|
|
auto | get_id_object () const |
| Get the id object.
|
|
auto | get_logger () const |
| Get the logger object.
|
|
hid_t | get_C_id () const |
| Get the C id object.
|
|
auto | get_refcount () |
| Get the reference count of object.
|
|
virtual bool | is_valid () const |
| Check if the object is still valid.
|
|
void | close () |
| Close function which takes care of correctly closing the object and managing the reference counter.
|
|
void | bind_to (hid_t id, std::function< herr_t(hid_t) > closing_func, std::string path={}) |
| Open the object and bind it to a HDF5 object identified by 'id' with name 'path'. Object should be created beforehand.
|
|
| HDFObject () |
| Construct HDFObject from the given arguments.
|
|
| HDFObject (HDFObject &&other) |
| Construct HDFObject by moving.
|
|
| HDFObject (const HDFObject &other)=default |
| Construct HDFObject by copying another object.
|
|
| HDFObject (hid_t id, std::function< herr_t(hid_t) > closing_func, std::string path={}) |
| Construct HDFObject from the given argument.
|
|
HDFObject & | operator= (const HDFObject &other) |
| Copy assignment operator.
|
|
HDFObject & | operator= (HDFObject &&other) |
| move assignment operator
|
|
virtual | ~HDFObject () |
| Destroy the HDFObject object. Has to be implemented in subclass!
|
|
Class representing a HDF5 file.