quadEM  7-0
Public Types | Public Member Functions | Friends | List of all members
hdf5::Group Class Reference

Describe a group element. More...

#include <NDFileHDF5Layout.h>

Inheritance diagram for hdf5::Group:
hdf5::Element hdf5::Root

Public Types

typedef std::map< std::string,
Group * > 
MapGroups_t
 Return a string representation of the object. More...
 
typedef std::map< std::string,
Dataset * > 
MapDatasets_t
 
typedef std::map< std::string,
HardLink * > 
MapHardLinks_t
 
typedef std::map< std::string,
DataSource * > 
MapNDAttrSrc_t
 return a map of datasets [string name, Dataset dset] which contains all datasets, marked as [source] data. More...
 
- Public Types inherited from hdf5::Element
typedef std::map< std::string,
Attribute
MapAttributes_t
 

Public Member Functions

 Group ()
 
 Group (const std::string &name)
 
 Group (const char *name)
 
 Group (const Group &src)
 
virtual ~Group ()
 
Groupoperator= (const Group &src)
 
Datasetnew_dset (const std::string &name)
 
Datasetnew_dset (const char *name)
 
Groupnew_group (const std::string &name)
 Create a new group, insert it into the group list, set the full path name, and finally return a pointer to the newly created object. More...
 
Groupnew_group (const char *name)
 
HardLinknew_hardlink (const std::string &name)
 Create a new HardLink, insert it into the group list, set the full path name, and finally return a pointer to the newly created object. More...
 
HardLinknew_hardlink (const char *name)
 
int find_dset_ndattr (const std::string &ndattr_name, Dataset **dset)
 
int find_dset_ndattr (const char *ndattr_name, Dataset **dset)
 << Find and return a reference to the dataset for a given NDAttribute More...
 
int find_dset (std::string &dsetname, Dataset **dest)
 
int find_dset (const char *dsetname, Dataset **dest)
 
void set_default_ndattr_group ()
 
Groupfind_ndattr_default_group ()
 
int find_detector_default_dset (Dataset **dset)
 << search through subgroups to return a pointer to the NDAttribute default container group More...
 
int num_groups ()
 
int num_datasets ()
 
std::string _str_ ()
 
MapGroups_tget_groups ()
 
MapDatasets_tget_datasets ()
 
MapHardLinks_tget_hardlinks ()
 
void find_dsets (DataSrc_t source, MapDatasets_t &dsets)
 
virtual void merge_ndattributes (MapNDAttrSrc_t::const_iterator it_begin, MapNDAttrSrc_t::const_iterator it_end, std::set< std::string > &used_ndattribute_srcs)
 
- Public Member Functions inherited from hdf5::Element
 Element ()
 
 Element (const Element &src)
 
 Element (const std::string &name)
 
 ~Element ()
 
Elementoperator= (const Element &src)
 
const std::string & get_name ()
 
virtual std::string get_full_name ()
 
virtual std::string get_path (bool trailing_slash=false)
 
int add_attribute (Attribute &attr)
 
bool has_attribute (const std::string &attr_name)
 
int tree_level ()
 
Elementget_parent ()
 
MapAttributes_tget_attributes ()
 

Friends

std::ostream & operator<< (std::ostream &out, Group &grp)
 Stream operator: use to prints a string representation of this class. More...
 

Additional Inherited Members

- Protected Member Functions inherited from hdf5::Element
void _copy (const Element &src)
 
- Protected Attributes inherited from hdf5::Element
MapAttributes_t attributes
 
std::string name
 

Detailed Description

Describe a group element.

A group is like a directory in a file system. It can contain other groups and datasets (like files).

Member Typedef Documentation

typedef std::map<std::string, Dataset*> hdf5::Group::MapDatasets_t
typedef std::map<std::string, Group*> hdf5::Group::MapGroups_t

Return a string representation of the object.

typedef std::map<std::string, HardLink*> hdf5::Group::MapHardLinks_t
typedef std::map<std::string, DataSource*> hdf5::Group::MapNDAttrSrc_t

return a map of datasets [string name, Dataset dset] which contains all datasets, marked as [source] data.

Constructor & Destructor Documentation

hdf5::Group::Group ( )
hdf5::Group::Group ( const std::string &  name)
hdf5::Group::Group ( const char *  name)
hdf5::Group::Group ( const Group src)
hdf5::Group::~Group ( )
virtual

Member Function Documentation

std::string hdf5::Group::_str_ ( )
int hdf5::Group::find_detector_default_dset ( Dataset **  dset)

<< search through subgroups to return a pointer to the NDAttribute default container group

int hdf5::Group::find_dset ( std::string &  dsetname,
Dataset **  dest 
)
int hdf5::Group::find_dset ( const char *  dsetname,
Dataset **  dest 
)
int hdf5::Group::find_dset_ndattr ( const std::string &  ndattr_name,
Dataset **  dset 
)
int hdf5::Group::find_dset_ndattr ( const char *  ndattr_name,
Dataset **  dset 
)

<< Find and return a reference to the dataset for a given NDAttribute

void hdf5::Group::find_dsets ( DataSrc_t  source,
MapDatasets_t dsets 
)
Group * hdf5::Group::find_ndattr_default_group ( )
Group::MapDatasets_t & hdf5::Group::get_datasets ( )
Group::MapGroups_t & hdf5::Group::get_groups ( )
Group::MapHardLinks_t & hdf5::Group::get_hardlinks ( )
void hdf5::Group::merge_ndattributes ( MapNDAttrSrc_t::const_iterator  it_begin,
MapNDAttrSrc_t::const_iterator  it_end,
std::set< std::string > &  used_ndattribute_srcs 
)
virtual

Reimplemented in hdf5::Root.

Dataset * hdf5::Group::new_dset ( const std::string &  name)
Dataset * hdf5::Group::new_dset ( const char *  name)
Group * hdf5::Group::new_group ( const std::string &  name)

Create a new group, insert it into the group list, set the full path name, and finally return a pointer to the newly created object.

Return NULL on error (group or dataset already exists or list insertion fails)

Group * hdf5::Group::new_group ( const char *  name)
HardLink * hdf5::Group::new_hardlink ( const std::string &  name)

Create a new HardLink, insert it into the group list, set the full path name, and finally return a pointer to the newly created object.

Return NULL on error (hardlink already exists or list insertion fails)

HardLink * hdf5::Group::new_hardlink ( const char *  name)
int hdf5::Group::num_datasets ( )
int hdf5::Group::num_groups ( )
Group & hdf5::Group::operator= ( const Group src)
void hdf5::Group::set_default_ndattr_group ( )

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
Group grp 
)
friend

Stream operator: use to prints a string representation of this class.


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