Xmipp
v3.23.11-Nereus
|
#include <xmipp_hdf5.h>
Public Member Functions | |
void | showTree (std::ostream &out=std::cout) |
void | openFile (const H5std_string &name, unsigned int flags, const H5::FileAccPropList &access_plist=H5::FileAccPropList::DEFAULT) |
int | getDataset (const char *dsname, Matrix1D< double > &data, bool reportError=true) const |
bool | checkDataset (const char *dsname) const |
Definition at line 69 of file xmipp_hdf5.h.
bool XmippH5File::checkDataset | ( | const char * | dsname | ) | const |
Return true if the dataset dsname exists in the file
dsname | Dataset name to check |
Definition at line 121 of file xmipp_hdf5.cpp.
int XmippH5File::getDataset | ( | const char * | dsname, |
Matrix1D< double > & | data, | ||
bool | reportError = true |
||
) | const |
Return the values in the dataset dsname and return them in a Matrix1D double data
dsname | Dataset name |
data | Vector data |
reportError | If true throw an exception in case of failure, otherwise it returns a negative number |
Definition at line 137 of file xmipp_hdf5.cpp.
void XmippH5File::openFile | ( | const H5std_string & | name, |
unsigned int | flags, | ||
const H5::FileAccPropList & | access_plist = H5::FileAccPropList::DEFAULT |
||
) |
Open HDF5 file
name | File name |
flags | tandard hdf5 flags |
access_plist | Standard hdf5 plist |
Definition at line 112 of file xmipp_hdf5.cpp.
void XmippH5File::showTree | ( | std::ostream & | out = std::cout | ) |
Show the groups and dataset and print them in the output stream out.
out | Output stream |
Definition at line 191 of file xmipp_hdf5.cpp.