radarlib 1.4.6
|
Generic OdimH5 v2.1 quality group. More...
#include <radarlib/odimh5v21_classes.hpp>
Public Member Functions | |
virtual H5::Group * | getH5Object () |
Get the HDF5 group associated to this object. | |
virtual bool | existWhat () |
Test is the WHAT attributes group exist. | |
virtual bool | existWhere () |
Test is the WHERE attributes group exist. | |
virtual bool | existHow () |
Test is the HOW attributes group exist. | |
virtual MetadataGroup * | getWhat () |
Get the WHAT attributes group. | |
virtual MetadataGroup * | getWhere () |
Get the WHERE attributes group. | |
virtual MetadataGroup * | getHow () |
Get the HOW attributes group. | |
virtual H5::AtomType | getQualityType () |
Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'quality' group. | |
virtual int | getQualityWidth () |
Get the width (cols num) of the matrix associated to this quality group. | |
virtual int | getQualityHeight () |
Get the height (rows num) of the matrix associated to this quality group. | |
virtual void | getQualityDimension (int *height, int *width) |
Get height and width (rows and cols num) of the matrix associated to this quality group. | |
virtual void | writeQuality (const void *buff, int width, int height, const H5::DataType &elemtype) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const char *buff, int width, int height) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const unsigned char *buff, int width, int height) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const unsigned short *buff, int width, int height) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const float *buff, int width, int height) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const DataMatrix< char > &matrix) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const DataMatrix< unsigned char > &matrix) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const DataMatrix< unsigned short > &matrix) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | writeQuality (const DataMatrix< float > &matrix) |
Write data to the matrix associated to this 'quality' group. | |
virtual void | readQuality (void *buffer) |
Read data from the dataset of this 'quality' group. | |
Generic OdimH5 v2.1 quality group.
All OdimH5 data can store one o more quality groups.
This class represents a generic OdimH5 quality group.
Generic data allow only to read/write attributes and matrices of binary data (RayMatrix).
Users are responsible for manipulating informations following OdimH5 specifications.
|
virtual |
Get the HDF5 group associated to this object.
Get the HDF5 group associated to this object
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Test is the WHAT attributes group exist.
Check if the WHAT attributes group of this object exist.
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Test is the WHERE attributes group exist.
Check if the WHERE attributes group of this object exist.
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Test is the HOW attributes group exist.
Check if the HOW attributes group of this object exist.
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Get the WHAT attributes group.
Get the WHAT attributes group of this object. If it does not exist it will be created
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Get the WHERE attributes group.
Get the WHERE attributes group of this object. If it does not exist it will be created
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Get the HOW attributes group.
Get the HOW attributes group of this object. If it does not exist it will be created
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'quality' group.
Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'quality' group.
If the HDF5 dataset is not present then NATIVE_OPAQUE will be returned. OdimH5 allow only atomic types: char, schar, uchar, short, ushort, int, uint, long, ulong, llong, ullong, float, double.
OdimH5Exception | if an unexpected error occurs |
OdimH5UnsupportedException | if the dataset type cannot be converted to an atomic type |
|
virtual |
Get the width (cols num) of the matrix associated to this quality group.
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Get the height (rows num) of the matrix associated to this quality group.
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Get height and width (rows and cols num) of the matrix associated to this quality group.
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the given buffer where each element has the given type.
The buffer must be a continuous memory array logically organized as a matrix divided in rows and cols.
The size of the buffer must be at least equal to (height * width * elemtype.getSize()). Otherwise a buffer overflow will occur.
buff | the buffer containing the quality to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
elemtype | the HDF5 datatype of the buffer's elements |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the given 8 bit signed buffer
buff | the buffer containing the data to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the given 8 bit unsigned buffer
buff | the buffer containing the quality to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the given 16 bit unsigned char buffer
buff | the buffer containing the quality to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the given 32 bit floating point buffer
buff | the buffer containing the quality to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Write data to the matrix associated to this 'quality' group.
Write data to the matrix associated to this 'quality' group from the DataMatrix object The HDF5 dataset will be created using the size and type of the given matrix object
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtual |
Read data from the dataset of this 'quality' group.
Read data from the dataset of this 'quality' group into the given buffer.
The buffer must be large enough to store all elements in the HDF5 dataset.
The minimum size in byte is (getDataWidth() x getDataHeight() x getDataType().getSize()).
buffer | the buffer to store the loaded data |
OdimH5Exception | if an unexpected error occurs |