Inherits IDataset.
Inheritance diagram for H5Dataset:
Public Member Functions | |
H5Dataset (const std::string &datasetPath, IMXAArray::Pointer data) | |
Creates an H5Dataset object with the given dataset path and data. | |
virtual | ~H5Dataset () |
void | setDatasetPath (const std::string &path) |
Sets the dataset path and name. | |
std::string | getDatasetPath () |
Returns the path+name of the dataset. | |
void | setData (IMXAArray::Pointer data) |
Sets the data for the dataset. | |
IMXAArray::Pointer | getData () |
Returns the data for this class. | |
void | addAttribute (const std::string &attributeKey, IMXAArray::Pointer attribute) |
Adds an attribute to this dataset. | |
void | removeAttribute (const std::string &attributeKey) |
Removes an attribute from the data set. | |
IMXAArray::Pointer | getAttribute (const std::string &attributeKey) |
Returns an attribute or NULL if not found. | |
virtual int32 | writeToFile (IDataFile::Pointer dataFile) |
virtual int32 | readFromFile (IDataFile::Pointer dataFile) |
Static Public Member Functions | |
static IDataset::Pointer | LoadFromFile (IDataFile::Pointer dataFile, const std::string &datasetPath) |
Loads a dataset from an HDf5 file into this class. | |
static IDataset::Pointer | CreateDatasetPtr (const std::string &datasetPath, IMXAArray::Pointer data) |
Creates an H5Dataset object with the given dataset path and data. | |
Protected Member Functions | |
H5Dataset () | |
Private Member Functions | |
H5Dataset (const H5Dataset &) | |
void | operator= (const H5Dataset &) |
Private Attributes | |
IMXAArray::Pointer | _data |
MXAAbstractAttributes | _attributes |
std::string | _datasetPath |
H5Dataset::H5Dataset | ( | const std::string & | datasetPath, | |
IMXAArray::Pointer | data | |||
) |
Creates an H5Dataset object with the given dataset path and data.
datasetPath | The path to the data set | |
data | The data that will be stored in hdf5 file |
H5Dataset::~H5Dataset | ( | ) | [virtual] |
H5Dataset::H5Dataset | ( | ) | [inline, protected] |
H5Dataset::H5Dataset | ( | const H5Dataset & | ) | [private] |
IDataset::Pointer H5Dataset::LoadFromFile | ( | IDataFile::Pointer | dataFile, | |
const std::string & | datasetPath | |||
) | [static] |
IDataset::Pointer H5Dataset::CreateDatasetPtr | ( | const std::string & | datasetPath, | |
IMXAArray::Pointer | data | |||
) | [static] |
Creates an H5Dataset object with the given dataset path and data.
datasetPath | The path to the data set | |
data | The data that will be stored in hdf5 file |
void H5Dataset::setDatasetPath | ( | const std::string & | path | ) | [virtual] |
std::string H5Dataset::getDatasetPath | ( | ) | [virtual] |
void H5Dataset::setData | ( | IMXAArray::Pointer | data | ) | [virtual] |
IMXAArray::Pointer H5Dataset::getData | ( | ) | [virtual] |
void H5Dataset::addAttribute | ( | const std::string & | attributeKey, | |
IMXAArray::Pointer | attribute | |||
) | [virtual] |
Adds an attribute to this dataset.
attributeKey | The name of the attribute | |
attribute | The data for the attribute |
Implements IDataset.
void H5Dataset::removeAttribute | ( | const std::string & | attributeKey | ) | [virtual] |
Removes an attribute from the data set.
attributeKey | The name of the attribute to remove |
Implements IDataset.
IMXAArray::Pointer H5Dataset::getAttribute | ( | const std::string & | attributeKey | ) | [virtual] |
Returns an attribute or NULL if not found.
attributeKey | The name of the attribute to retrieve |
Implements IDataset.
int32 H5Dataset::writeToFile | ( | IDataFile::Pointer | dataFile | ) | [virtual] |
int32 H5Dataset::readFromFile | ( | IDataFile::Pointer | dataFile | ) | [virtual] |
void H5Dataset::operator= | ( | const H5Dataset & | ) | [private] |
IMXAArray::Pointer H5Dataset::_data [private] |
MXAAbstractAttributes H5Dataset::_attributes [private] |
std::string H5Dataset::_datasetPath [private] |