HighFive 2.10.1
HighFive - Header-only C++ HDF5 interface
Loading...
Searching...
No Matches
HighFive::Group Class Reference

Represents an hdf5 group. More...

#include <H5Group.hpp>

Inheritance diagram for HighFive::Group:
Collaboration diagram for HighFive::Group:

Public Member Functions

 Group ()=default
 
std::pair< unsigned int, unsigned int > getEstimatedLinkInfo () const
 
GroupCreateProps getCreatePropertyList () const
 Get the list of properties for creation of this group.
 
 Group (Object &&o) noexcept
 
- Public Member Functions inherited from HighFive::Object
 Object (Object &&other) noexcept
 
 ~Object ()
 
bool isValid () const noexcept
 isValid
 
hid_t getId () const noexcept
 getId
 
ObjectInfo getInfo () const
 Retrieve several infos about the current object (address, dates, etc)
 
ObjectType getType () const
 Gets the fundamental type of the object (dataset, group, etc)
 
bool operator== (const Object &other) const noexcept
 
- Public Member Functions inherited from HighFive::NodeTraits< Group >
DataSet createDataSet (const std::string &dataset_name, const DataSpace &space, const DataType &type, const DataSetCreateProps &createProps=DataSetCreateProps::Default(), const DataSetAccessProps &accessProps=DataSetAccessProps::Default(), bool parents=true)
 createDataSet Create a new dataset in the current file of datatype type and of size space
 
DataSet createDataSet (const std::string &dataset_name, const DataSpace &space, const DataSetCreateProps &createProps=DataSetCreateProps::Default(), const DataSetAccessProps &accessProps=DataSetAccessProps::Default(), bool parents=true)
 createDataSet create a new dataset in the current file with a size specified by space
 
DataSet createDataSet (const std::string &dataset_name, const T &data, const DataSetCreateProps &createProps=DataSetCreateProps::Default(), const DataSetAccessProps &accessProps=DataSetAccessProps::Default(), bool parents=true)
 createDataSet create a new dataset in the current file and write to it, inferring the DataSpace from the data.
 
DataSet createDataSet (const std::string &dataset_name, const deprecated::FixedLenStringArray< N > &data, const DataSetCreateProps &createProps=DataSetCreateProps::Default(), const DataSetAccessProps &accessProps=DataSetAccessProps::Default(), bool parents=true)
 
DataSet getDataSet (const std::string &dataset_name, const DataSetAccessProps &accessProps=DataSetAccessProps::Default()) const
 get an existing dataset in the current file
 
Group createGroup (const std::string &group_name, bool parents=true)
 create a new group, and eventually intermediate groups
 
Group createGroup (const std::string &group_name, const GroupCreateProps &createProps, bool parents=true)
 create a new group, and eventually intermediate groups
 
Group getGroup (const std::string &group_name) const
 open an existing group with the name group_name
 
DataType getDataType (const std::string &type_name, const DataTypeAccessProps &accessProps=DataTypeAccessProps::Default()) const
 open a commited datatype with the name type_name
 
size_t getNumberObjects () const
 return the number of leaf objects of the node / group
 
std::string getObjectName (size_t index) const
 return the name of the object with the given index
 
bool rename (const std::string &src_path, const std::string &dest_path, bool parents=true) const
 moves an object and its content within an HDF5 file.
 
std::vector< std::string > listObjectNames (IndexType idx_type=IndexType::NAME) const
 list all leaf objects name of the node / group
 
bool exist (const std::string &node_name) const
 check a dataset or group exists in the current node / group
 
void unlink (const std::string &node_name) const
 unlink the given dataset or group
 
LinkType getLinkType (const std::string &node_name) const
 Returns the kind of link of the given name (soft, hard...)
 
ObjectType getObjectType (const std::string &node_name) const
 A shorthand to get the kind of object pointed to (group, dataset, type...)
 
void createSoftLink (const std::string &linkName, const T &obj)
 A shorthand to create softlink to any object which provides getPath The link will be created with default properties along with required parent groups.
 
void createSoftLink (const std::string &link_name, const std::string &obj_path, LinkCreateProps linkCreateProps=LinkCreateProps(), const LinkAccessProps &linkAccessProps=LinkAccessProps(), const bool parents=true)
 Creates softlinks.
 
void createExternalLink (const std::string &link_name, const std::string &h5_file, const std::string &obj_path, LinkCreateProps linkCreateProps=LinkCreateProps(), const LinkAccessProps &linkAccessProps=LinkAccessProps(), const bool parents=true)
 
void createHardLink (const std::string &link_name, const T &target_obj, LinkCreateProps linkCreateProps=LinkCreateProps(), const LinkAccessProps &linkAccessProps=LinkAccessProps(), const bool parents=true)
 Creates hardlinks.
 
- Public Member Functions inherited from HighFive::AnnotateTraits< Group >
Attribute createAttribute (const std::string &attribute_name, const DataSpace &space, const DataType &type)
 create a new attribute with the name attribute_name
 
Attribute createAttribute (const std::string &attribute_name, const DataSpace &space)
 createAttribute create a new attribute on the current dataset with size specified by space
 
Attribute createAttribute (const std::string &attribute_name, const T &data)
 createAttribute create a new attribute on the current dataset and write to it, inferring the DataSpace from data.
 
void deleteAttribute (const std::string &attribute_name)
 deleteAttribute let you delete an attribute by its name.
 
Attribute getAttribute (const std::string &attribute_name) const
 open an existing attribute with the name attribute_name
 
size_t getNumberAttributes () const
 return the number of attributes of the node / group
 
std::vector< std::string > listAttributeNames () const
 list all attribute name of the node / group
 
bool hasAttribute (const std::string &attr_name) const
 checks an attribute exists
 
- Public Member Functions inherited from HighFive::PathTraits< Group >
 PathTraits ()
 
std::string getPath () const
 return the path to the current object
 
FilegetFile () const noexcept
 Return a reference to the File object this object belongs.
 

Static Public Attributes

static const ObjectType type = ObjectType::Group
 

Protected Member Functions

 Object (Object &&other) noexcept
 
 Object ()
 
 Object (const Object &other)
 
 Object (hid_t)
 
- Protected Member Functions inherited from HighFive::Object
 Object ()
 
 Object (const Object &other)
 
 Object (hid_t)
 
Objectoperator= (const Object &other)
 

Friends

class File
 
class Reference
 

Additional Inherited Members

- Protected Attributes inherited from HighFive::Object
hid_t _hid
 
- Protected Attributes inherited from HighFive::PathTraits< Group >
std::shared_ptr< File_file_obj
 

Detailed Description

Represents an hdf5 group.

Constructor & Destructor Documentation

◆ Group() [1/2]

HighFive::Group::Group ( )
default
Deprecated
Default constructor creates unsafe uninitialized objects

◆ Group() [2/2]

HighFive::Group::Group ( Object && o)
inlinenoexcept

Member Function Documentation

◆ getCreatePropertyList()

GroupCreateProps HighFive::Group::getCreatePropertyList ( ) const
inline

Get the list of properties for creation of this group.

◆ getEstimatedLinkInfo()

std::pair< unsigned int, unsigned int > HighFive::Group::getEstimatedLinkInfo ( ) const
inline

◆ Object() [1/4]

HighFive::Object::Object ( )
inlineprotected

◆ Object() [2/4]

HighFive::Object::Object ( const Object & other)
inlineprotected

◆ Object() [3/4]

HighFive::Object::Object ( hid_t hid)
inlineexplicitprotected

◆ Object() [4/4]

HighFive::Object::Object ( Object && other)
inlineprotectednoexcept

Friends And Related Symbol Documentation

◆ File

friend class File
friend

◆ Reference

friend class Reference
friend

Member Data Documentation

◆ type

const ObjectType HighFive::Group::type = ObjectType::Group
static

The documentation for this class was generated from the following file: