radarlib
1.4.6
|
HDF5Attribute class. More...
#include <radarlib/odimh5v21_hdf5.hpp>
Static Public Member Functions | |
static H5::Attribute * | get (H5::H5Object *obj, const char *name, bool mandatory) |
Get a HDF5 attribute. More... | |
static bool | exists (H5::H5Object *obj, const char *name) |
Check if an HDF5 attribute exists. More... | |
static void | remove (H5::H5Object *obj, const char *name) |
Delete an HDF5 attribute. More... | |
static std::string | getName (H5::Attribute *attr) |
Get the name of a given attribute. More... | |
static void | set (H5::H5Object *obj, const char *name, int64_t value) |
Set the value of an attribute. More... | |
static void | set (H5::H5Object *obj, const char *name, double value) |
Set the value of an attribute. More... | |
static void | set (H5::H5Object *obj, const char *name, const char *value) |
Set the value of an attribute. More... | |
static void | set (H5::H5Object *obj, const char *name, const std::string &value) |
Set the value of an attribute. More... | |
static int64_t | getLong (H5::H5Object *obj, const char *name) |
Get the value of a 64 bit int signed attribute attribute. More... | |
static int64_t | getLong (H5::H5Object *obj, const char *name, int64_t defaultValue) |
Get the value of a 64 bit int signed attribute. More... | |
static double | getDouble (H5::H5Object *obj, const char *name) |
Get the value of a 64 bit floating point attribute. More... | |
static double | getDouble (H5::H5Object *obj, const char *name, double defaultValue) |
Get the value of a 64 bit floating point attribute. More... | |
static std::string | getStr (H5::H5Object *obj, const char *name) |
Get the value of a string attribute. More... | |
static std::string | getStr (H5::H5Object *obj, const char *name, const std::string &defaultValue) |
Get the value of a string attribute. More... | |
HDF5Attribute class.
This is an internal class with methods to perform operations on HDF5 attributes
|
static |
Get a HDF5 attribute.
Get the HDF5 attribute of an HDF5 object with the given name
obj | the hdf5 object |
name | the attribute name |
mandatory | throw exception if the attribute does not exists |
OdimH5Exception | if an unexpected error occurs |
OdimH5MissingAttributeException | if mandatory is true and the attribute does not exists |
|
static |
Check if an HDF5 attribute exists.
Check if an HDF5 attribute exists for a given object
obj | the hdf5 object |
name | the attribute name |
OdimH5Exception | if an unexpected error occurs |
|
static |
Delete an HDF5 attribute.
Delete an HDF5 attribute from an HDF5 object
obj | the hdf5 object |
name | the attribute name |
OdimH5Exception | if an unexpected error occurs |
|
static |
Get the name of a given attribute.
Get the name of a given attribute. This method is defined only to overcome a HDF5 library bug
attr | the hdf5 attribute |
OdimH5Exception | if an unexpected error occurs |
|
static |
Set the value of an attribute.
Set the value of an attribute using the given 64 bit signed int value If the attribute does not exists it will be created If the attribute exists it will be erased and then recrated
obj | the hdf5 object |
name | the attribute name |
value | the value to write into the attribute |
OdimH5Exception | if an unexpected error occurs |
|
static |
Set the value of an attribute.
Set the value of an attribute using the given 64 bit floating point value If the attribute does not exists it will be created If the attribute exists it will be erased and then recrated
obj | the hdf5 object |
name | the attribute name |
value | the value to write into the attribute |
OdimH5Exception | if an unexpected error occurs |
|
static |
Set the value of an attribute.
Set the value of an attribute using the given string If the attribute does not exists it will be created If the attribute exists it will be erased and then recrated
obj | the hdf5 object |
name | the attribute name |
value | the string to use |
OdimH5Exception | if an unexpected error occurs |
|
static |
Set the value of an attribute.
Set the value of an attribute using the given std::string If the attribute does not exists it will be created If the attribute exists it will be erased and then recrated
obj | the hdf5 object |
name | the attribute name |
value | the string to use |
OdimH5Exception | if an unexpected error occurs |
|
static |
Get the value of a 64 bit int signed attribute attribute.
Get the value of a 64 bit signed int attribute
obj | the HDF5 object |
name | the attribute name |
OdimH5Exception | if an unexpected error occurs |
OdimH5MissingAttributeException | Raised if the attribute does not exists |
|
static |
Get the value of a 64 bit int signed attribute.
Get the value of a 64 signed int attribute
obj | the hdf5 object |
name | the attribute name |
defaultValue | the value to return if the attribute does not exists |
OdimH5Exception | if an unexpected error occurs |
|
static |
Get the value of a 64 bit floating point attribute.
Get the value of a 64 bit floating point attribute
obj | the hdf5 object |
name | the attribute name |
OdimH5Exception | if an unexpected error occurs |
OdimH5MissingAttributeException | Raised if the attribute does not exists |
|
static |
Get the value of a 64 bit floating point attribute.
Get the value of a 64 bit floating point attribute
obj | the hdf5 object |
name | the attribute name |
defaultValue | the value to return if the attribute does not exists |
OdimH5Exception | if an unexpected error occurs |
OdimH5MissingAttributeException | Raised if the attribute does not exists |
|
static |
Get the value of a string attribute.
Get the value of a string attribute
obj | the hdf5 object |
name | the attribute name |
OdimH5Exception | if an unexpected error occurs |
OdimH5MissingAttributeException | Raised if the attribute does not exists |
|
static |
Get the value of a string attribute.
Get the value of a string attribute
obj | the hdf5 object |
name | the attribute name |
defaultValue | the value to return if the attribute does not exists |
OdimH5Exception | if an unexpected error occurs |
OdimH5MissingAttributeException | Raised if the attribute does not exists |