halapi
hierarchichalalignmentformatapi
|
#include <hdf5MetaData.h>
Public Member Functions | |
HDF5MetaData (H5::CommonFG *parent, const std::string &name) | |
void | set (const std::string &key, const std::string &value) |
const std::string & | get (const std::string &key) const |
bool | has (const std::string &key) const |
const std::map< std::string, std::string > & | getMap () const |
void | write () |
void | open (H5::CommonFG *parent, const std::string &name) |
Protected Attributes | |
H5::CommonFG * | _parent |
H5::Group | _group |
std::map< std::string, std::string > | _map |
bool | _dirty |
std::string | _name |
Static Protected Attributes | |
static const std::string | MetaGroupName |
HDF5 string map used for general metadata
const string & HDF5MetaData::get | ( | const std::string & | key | ) | const [virtual] |
Get the value associated with a key (throws error if key doesn't exist)
key | MetaData key |
Implements hal::MetaData.
const map< string, string > & HDF5MetaData::getMap | ( | ) | const [virtual] |
Get read-only reference to the map of metadat
Implements hal::MetaData.
bool HDF5MetaData::has | ( | const std::string & | key | ) | const [virtual] |
void hal::HDF5MetaData::set | ( | const std::string & | key, |
const std::string & | value | ||
) | [virtual] |
Set a key-value pair (create's if doesn't exist, updates if does)
key | Key to update |
value | Value to update |
Implements hal::MetaData.