|
radarlib 1.4.6
|
Attribute (odim metadata) group. More...
#include <radarlib/odimh5v20_metadata.hpp>
Public Member Functions | |
| MetadataGroup (H5::Group *group) | |
| Create a new metadata group linking it to a HDF5 group object. | |
| int | getCount () |
| Get che number of attributes in the group. | |
| bool | exists (const char *name) |
| Check if an attribute with the given name exists (name is case sensitive). | |
| void | remove (const char *name) |
| Delete the attribute with the given name (name is case sensitive). | |
| H5::Attribute * | getH5Attribute (const char *name, bool mandatory=false) |
| Get pointer to the HDF5 attribute object associated to an attribute. | |
| void | set (const char *name, bool value) |
| Set or create an attribute with the given boolean value. | |
| void | set (const char *name, char value) |
| Set or create an attribute with the given 8 bit signed value. | |
| void | set (const char *name, unsigned char value) |
| Set or create an attribute with the given 8 bit unsigned value. | |
| void | set (const char *name, short value) |
| Set or create an attribute with the given 16 bit signed value. | |
| void | set (const char *name, unsigned short value) |
| Set or create an attribute with the given 16 bit unsigned value. | |
| void | set (const char *name, int value) |
| Set or create an attribute with the given 32 bit signed value. | |
| void | set (const char *name, unsigned int value) |
| Set or create an attribute with the given 32 bit unsigned value. | |
| void | set (const char *name, int64_t value) |
| Set or create an attribute with the given 64 bit signed value. | |
| void | set (const char *name, float value) |
| Set or create an attribute with the given 32 bit floating point value. | |
| void | set (const char *name, double value) |
| Set or create an attribute with the given 64 bit floating point value. | |
| void | set (const char *name, const char *value) |
| Set or create an attribute with the given string value. | |
| void | set (const char *name, const std::string &value) |
| Set or create an attribute with the given std::string value. | |
| void | set (const char *name, const std::vector< bool > &value) |
| Set or create a sequence attribute with the given boolean values. | |
| void | set (const char *name, const std::vector< char > &value) |
| Set or create a sequence attribute with the given 8 bit signed values. | |
| void | set (const char *name, const std::vector< unsigned char > &value) |
| Set or create a sequence attribute with the given 8 bit unsigned values. | |
| void | set (const char *name, const std::vector< short > &value) |
| Set or create a sequence attribute with the given 16 bit signed values. | |
| void | set (const char *name, const std::vector< unsigned short > &value) |
| Set or create a sequence attribute with the given 16 bit unsigned values. | |
| void | set (const char *name, const std::vector< int > &value) |
| Set or create a sequence attribute with the given 32 bit signed values. | |
| void | set (const char *name, const std::vector< unsigned int > &value) |
| Set or create a sequence attribute with the given 32 bit unsigned values. | |
| void | set (const char *name, const std::vector< int64_t > &value) |
| Set or create a sequence attribute with the given 64 bit signed values. | |
| void | set (const char *name, const std::vector< float > &value, int precision=0) |
| Set or create a sequence attribute with the given 32 bit floating point values. | |
| void | set (const char *name, const std::vector< double > &value, int precision=0) |
| Set or create a sequence attribute with the given 64 bit floating point values. | |
| void | set (const char *name, const std::vector< char * > &value) |
| Set or create a sequence attribute with the given string values. | |
| void | set (const char *name, const std::vector< std::string > &value) |
| Set or create a sequence attribute with the given string values. | |
| void | set (const char *name, const std::vector< std::pair< short, short > > &value) |
| Set or create a pairs sequence attribute with the given pairs of 16 bit signed values. | |
| void | set (const char *name, const std::vector< std::pair< int, int > > &value) |
| Set or create a pairs sequence attribute with the given pairs of 32 bit signed values. | |
| void | set (const char *name, const std::vector< std::pair< int64_t, int64_t > > &value) |
| Set or create a pairs sequence attribute with the given pairs of 64 bit signed values. | |
| void | set (const char *name, const std::vector< std::pair< float, float > > &value, int precision=0) |
| Set or create a pairs sequence attribute with the given pairs of 32 bit floating point values. | |
| void | set (const char *name, const std::vector< std::pair< double, double > > &value, int precision=0) |
| Set or create a pairs sequence attribute with the given pairs of 64 bit floating point values. | |
| void | set (const char *name, const std::vector< std::pair< std::string, std::string > > &value) |
| Set or create a pairs sequence attribute with the given pairs of string values. | |
| void | set (const char *name, const std::vector< AZTimes > &value) |
| Set or create a pairs sequence attribute with the given azimuth time pairs. | |
| void | set (const char *name, const std::vector< AZAngles > &value) |
| Set or create a pairs sequence attribute with the given azimuth angles pairs. | |
| void | set (const char *name, const std::vector< AZAngles > &value, int precision) |
| Set or create a pairs sequence attribute with the given azimuth angles pairs. | |
| void | set (const char *name, const VILHeights &value) |
| Set or create a sequence attribute with the given integration layer height pair. | |
| void | set (const char *name, const std::vector< Angles > &value) |
| Set or create a sequence attribute with the given elevation angles. | |
| void | set (const char *name, const std::vector< Angles > &value, int precision) |
| Set or create a sequence attribute with the given elevation angles. | |
| void | set (const char *name, const std::vector< Arotation > &value) |
| Set or create a sequence attribute with the given antenna rotation speeds. | |
| void | set (const char *name, const std::vector< Arotation > &value, int precision) |
| Set or create a sequence attribute with the given antenna rotation speeds. | |
| void | set (const char *name, const std::vector< Nodes > &value) |
| Set or create a sequence attribute with the given radar nodes. | |
| void | set (const char *name, const std::stringstream &value) |
| Set or create a string attribute with the given string stream. | |
| void | set (const char *name, const std::ostringstream &value) |
| Set or create a string attribute with the given output string stream. | |
| bool | getBool (const char *name) |
| Get the value of a boolean attribute. | |
| bool | getBool (const char *name, bool value) |
| Get the value of a boolean attribute. | |
| char | getChar (const char *name) |
| Get the value of a 64 bit signed attribute converting it to 8bit signed value. | |
| char | getChar (const char *name, char value) |
| Get the value of a 64 bit signed attribute converting it to 8bit signed value. | |
| unsigned char | getUChar (const char *name) |
| Get the value of a 64 bit signed attribute converting it to 8 bit unsigned value. | |
| unsigned char | getUChar (const char *name, unsigned char value) |
| Get the value of a 64 bit signed attribute converting it to 8 bit unsigned value. | |
| short | getShort (const char *name) |
| Get the value of a 64 bit signed attribute converting it to 16 bit signed value. | |
| short | getShort (const char *name, short value) |
| Get the value of a 64 bit signed attribute converting it to 16 bit signed value. | |
| unsigned short | getUShort (const char *name) |
| Get the value of a 64 bit signed attribute converting it to 16 bit unsigned value. | |
| unsigned short | getUShort (const char *name, unsigned short value) |
| Get the value of a 64 bit signed attribute converting it to 16 bit unsigned value. | |
| int | getInt (const char *name) |
| Get the value of a 64 bit signed attribute converting it to 32 bit signed value. | |
| int | getInt (const char *name, int value) |
| Get the value of a 64 bit signed attribute converting it to 32 bit signed value. | |
| unsigned int | getUInt (const char *name) |
| Get the value of a 64 bit signed attribute converting it to 32 bit unsigned value. | |
| unsigned int | getUInt (const char *name, unsigned int value) |
| Get the value of a 64 bit signed attribute converting it to 32 bit unsigned value. | |
| int64_t | getLong (const char *name) |
| Get the value of a 64 bit signed attribute. | |
| int64_t | getLong (const char *name, int64_t value) |
| Get the value of a 64 bit signed attribute. | |
| time_t | getTimeT (const char *name) |
| Get the value of a 64 bit signed attribute converting it to time_t value. | |
| time_t | getTimeT (const char *name, time_t value) |
| Get the value of a 64 bit signed attribute converting it to time_t value. | |
| float | getFloat (const char *name) |
| Get the value of a 64 bit floating point attribute converting it to 32 bit floating point value. | |
| float | getFloat (const char *name, float value) |
| Get the value of a 64 bit floating point attribute converting it to 32 bit floating point value. | |
| double | getDouble (const char *name) |
| Get the value of a 64 bit floating point attribute. | |
| double | getDouble (const char *name, double value) |
| Get the value of a 64 bit floating point attribute. | |
| std::string | getStr (const char *name) |
| Get the value of a string attribute. | |
| std::string | getStr (const char *name, const std::string &value) |
| Get the value of a string attribute. | |
| std::vector< bool > | getBools (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to boolean values. | |
| std::vector< char > | getChars (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 8 bit signed values. | |
| std::vector< unsigned char > | getUChars (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 8 bit unsigned values. | |
| std::vector< short > | getShorts (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 16 bit signed values. | |
| std::vector< unsigned short > | getUShorts (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 16 bit unsigned values. | |
| std::vector< int > | getInts (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 32 bit signed values. | |
| std::vector< unsigned int > | getUInts (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 32 bit unsigned values. | |
| std::vector< int64_t > | getLongs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 64 bit signed values. | |
| std::vector< time_t > | getTimes (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to time_t values. | |
| std::vector< float > | getFloats (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 32 bit floating point values. | |
| std::vector< double > | getDoubles (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 64 bit floating point values. | |
| std::vector< std::string > | getStrings (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to string values. | |
| std::vector< std::pair< short, short > > | getShortPairs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 16 bit signed value pairs. | |
| std::vector< std::pair< int, int > > | getIntPairs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 32 bit signed value pairs. | |
| std::vector< std::pair< int64_t, int64_t > > | getLongPairs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 64 bit signed value pairs. | |
| std::vector< std::pair< float, float > > | getFloatPairs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 32 bit floating point value pairs. | |
| std::vector< std::pair< double, double > > | getDoublePairs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to 64 bit floating point value pairs. | |
| const std::vector< std::pair< std::string, std::string > > | getStrPairs (const char *name, bool mandatory=false) |
| Get the value of a sequence attribute converting it to string pairs. | |
| std::vector< AZTimes > | getAZTimes (const char *name) |
| Get the value of a sequence attribute converting it to azimuth time pairs. | |
| std::vector< AZAngles > | getAZAngles (const char *name) |
| Get the value of a sequence attribute converting it to azimuth angle pairs. | |
| VILHeights | getVILHeights (const char *name) |
| Get the value of a sequence attribute converting it to vertical height pairs. | |
| std::vector< Angles > | getAngles (const char *name) |
| Get the value of a sequence attribute converting it to elevation angle. | |
| std::vector< Arotation > | getArotation (const char *name) |
| Get the value of a sequence attribute converting it to antenna rotation speed. | |
| std::vector< Nodes > | getNodes (const char *name) |
| Get the value of a sequence attribute converting it to radar nodes. | |
| void | import (MetadataGroup *group) |
| Copy/write all attributes from the given group to this group. | |
| void | import (MetadataGroup *group, const std::set< std::string > &names) |
| Copy/write all given attributes from the given group to this group. | |
| H5::Group * | getH5Object () const |
| Get a reference to the underneath HDF5 group object. | |
Static Public Member Functions | |
| static void | setConventions (H5::Group *root) |
| Static method to write OdimH5 Conventions attribute into given group. | |
| static std::string | getConventions (H5::Group *root) |
| Static method to read OdimH5 Conventions attribute from a given group. | |
Attribute (odim metadata) group.
This class represent an attribute collection used to represent odim What, Where and How attribute groups This is a generic class, no checks are made about name or values used for attributes. It is user responsibility to use this class to write and read attributes according to OdimH5 format
| OdimH5v20::MetadataGroup::MetadataGroup | ( | H5::Group * | group | ) |
Create a new metadata group linking it to a HDF5 group object.
| int OdimH5v20::MetadataGroup::getCount | ( | ) |
Get che number of attributes in the group.
| bool OdimH5v20::MetadataGroup::exists | ( | const char * | name | ) |
Check if an attribute with the given name exists (name is case sensitive).
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::remove | ( | const char * | name | ) |
Delete the attribute with the given name (name is case sensitive).
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| H5::Attribute * OdimH5v20::MetadataGroup::getH5Attribute | ( | const char * | name, |
| bool | mandatory = false ) |
Get pointer to the HDF5 attribute object associated to an attribute.
| name | the attribute name |
| mandatory | if true, the attribute must be present in the group, otherwise a OdimH5MissingAttributeException will be raised |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true but the attribute is not present |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| bool | value ) |
Set or create an attribute with the given boolean value.
Boolean values are store ad string values "True" or "False"
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| char | value ) |
Set or create an attribute with the given 8 bit signed value.
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| unsigned char | value ) |
Set or create an attribute with the given 8 bit unsigned value.
The value will be stored as a 64 bit signed value
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| short | value ) |
Set or create an attribute with the given 16 bit signed value.
The value will be stored as a 64 bit signed value
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| unsigned short | value ) |
Set or create an attribute with the given 16 bit unsigned value.
The value will be stored as a 64 bit signed value
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| int | value ) |
Set or create an attribute with the given 32 bit signed value.
The value will be stored as a 64 bit signed value
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| unsigned int | value ) |
Set or create an attribute with the given 32 bit unsigned value.
The value will be stored as a 64 bit signed value
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| int64_t | value ) |
Set or create an attribute with the given 64 bit signed value.
OdimH5 format does not allow 64 bit unsigned values;
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| float | value ) |
Set or create an attribute with the given 32 bit floating point value.
The value will be stored as a 64 bit floating point value
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| double | value ) |
Set or create an attribute with the given 64 bit floating point value.
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const char * | value ) |
Set or create an attribute with the given string value.
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::string & | value ) |
Set or create an attribute with the given std::string value.
| name | the attribute name |
| value | the value to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< bool > & | value ) |
Set or create a sequence attribute with the given boolean values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< char > & | value ) |
Set or create a sequence attribute with the given 8 bit signed values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< unsigned char > & | value ) |
Set or create a sequence attribute with the given 8 bit unsigned values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< short > & | value ) |
Set or create a sequence attribute with the given 16 bit signed values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< unsigned short > & | value ) |
Set or create a sequence attribute with the given 16 bit unsigned values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< int > & | value ) |
Set or create a sequence attribute with the given 32 bit signed values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< unsigned int > & | value ) |
Set or create a sequence attribute with the given 32 bit unsigned values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< int64_t > & | value ) |
Set or create a sequence attribute with the given 64 bit signed values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< float > & | value, | ||
| int | precision = 0 ) |
Set or create a sequence attribute with the given 32 bit floating point values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting values to string |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< double > & | value, | ||
| int | precision = 0 ) |
Set or create a sequence attribute with the given 64 bit floating point values.
Values are stored as a comma separated string
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting values to string |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< char * > & | value ) |
Set or create a sequence attribute with the given string values.
Values are stored as a comma separated string Is use responsibility to remove commas from string values
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::string > & | value ) |
Set or create a sequence attribute with the given string values.
Values are stored as a comma separated string Is use responsibility to remove commas from string values
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::pair< short, short > > & | value ) |
Set or create a pairs sequence attribute with the given pairs of 16 bit signed values.
Pairs are stored as a comma separated string with pair values separated by ':'
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::pair< int, int > > & | value ) |
Set or create a pairs sequence attribute with the given pairs of 32 bit signed values.
Pairs are stored as a comma separated string with pair values separated by ':'
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::pair< int64_t, int64_t > > & | value ) |
Set or create a pairs sequence attribute with the given pairs of 64 bit signed values.
Pairs are stored as a comma separated string with pair values separated by ':'
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::pair< float, float > > & | value, | ||
| int | precision = 0 ) |
Set or create a pairs sequence attribute with the given pairs of 32 bit floating point values.
Pairs are stored as a comma separated string with pair values separated by ':'
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting value to strings |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::pair< double, double > > & | value, | ||
| int | precision = 0 ) |
Set or create a pairs sequence attribute with the given pairs of 64 bit floating point values.
Pairs are stored as a comma separated string with pair values separated by ':'
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting value to strings |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< std::pair< std::string, std::string > > & | value ) |
Set or create a pairs sequence attribute with the given pairs of string values.
Pairs are stored as a comma separated string with pair values separated by ':'
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< AZTimes > & | value ) |
Set or create a pairs sequence attribute with the given azimuth time pairs.
Pairs are stored as a comma separated string with pair values separated by ':' Azimuth times are stored according to OdimH5 format 'HHMMSS.sss'
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< AZAngles > & | value ) |
Set or create a pairs sequence attribute with the given azimuth angles pairs.
Pairs are stored as a comma separated string with pair values separated by ':' Pair values are stored with the default STL precision for double values.
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< AZAngles > & | value, | ||
| int | precision ) |
Set or create a pairs sequence attribute with the given azimuth angles pairs.
Pairs are stored as a comma separated string with pair values separated by ':' Pair values are stored with the given precision value.
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting value to strings |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const VILHeights & | value ) |
Set or create a sequence attribute with the given integration layer height pair.
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< Angles > & | value ) |
Set or create a sequence attribute with the given elevation angles.
Values are separated by ':' Values are stored with the default STL precision for double values.
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< Angles > & | value, | ||
| int | precision ) |
Set or create a sequence attribute with the given elevation angles.
Values are separated by ':' Pair values are stored with the given precision value.
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting value to strings |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< Arotation > & | value ) |
Set or create a sequence attribute with the given antenna rotation speeds.
Values are separated by ':' Values are stored with the default STL precision for double values.
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< Arotation > & | value, | ||
| int | precision ) |
Set or create a sequence attribute with the given antenna rotation speeds.
Values are separated by ':' Pair values are stored with the given precision value.
| name | the attribute name |
| value | the values to write |
| precision | the precision to use while converting value to strings |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::vector< Nodes > & | value ) |
Set or create a sequence attribute with the given radar nodes.
Values are separated by ':'
| name | the attribute name |
| value | the values to write |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::stringstream & | value ) |
Set or create a string attribute with the given string stream.
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::set | ( | const char * | name, |
| const std::ostringstream & | value ) |
Set or create a string attribute with the given output string stream.
| OdimH5Exception | if an unexpected error occurs |
| bool OdimH5v20::MetadataGroup::getBool | ( | const char * | name | ) |
Get the value of a boolean attribute.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| bool OdimH5v20::MetadataGroup::getBool | ( | const char * | name, |
| bool | value ) |
Get the value of a boolean attribute.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| char OdimH5v20::MetadataGroup::getChar | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to 8bit signed value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| char OdimH5v20::MetadataGroup::getChar | ( | const char * | name, |
| char | value ) |
Get the value of a 64 bit signed attribute converting it to 8bit signed value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| unsigned char OdimH5v20::MetadataGroup::getUChar | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to 8 bit unsigned value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| unsigned char OdimH5v20::MetadataGroup::getUChar | ( | const char * | name, |
| unsigned char | value ) |
Get the value of a 64 bit signed attribute converting it to 8 bit unsigned value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| short OdimH5v20::MetadataGroup::getShort | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to 16 bit signed value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| short OdimH5v20::MetadataGroup::getShort | ( | const char * | name, |
| short | value ) |
Get the value of a 64 bit signed attribute converting it to 16 bit signed value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| unsigned short OdimH5v20::MetadataGroup::getUShort | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to 16 bit unsigned value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| unsigned short OdimH5v20::MetadataGroup::getUShort | ( | const char * | name, |
| unsigned short | value ) |
Get the value of a 64 bit signed attribute converting it to 16 bit unsigned value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| int OdimH5v20::MetadataGroup::getInt | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to 32 bit signed value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| int OdimH5v20::MetadataGroup::getInt | ( | const char * | name, |
| int | value ) |
Get the value of a 64 bit signed attribute converting it to 32 bit signed value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| value | the value to return if the attribute does not exists |
| OdimH5Exception | if an unexpected error occurs |
| unsigned int OdimH5v20::MetadataGroup::getUInt | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to 32 bit unsigned value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| unsigned int OdimH5v20::MetadataGroup::getUInt | ( | const char * | name, |
| unsigned int | value ) |
Get the value of a 64 bit signed attribute converting it to 32 bit unsigned value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| value | the value to return if the attribute does not exists |
| OdimH5Exception | if an unexpected error occurs |
| int64_t OdimH5v20::MetadataGroup::getLong | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| int64_t OdimH5v20::MetadataGroup::getLong | ( | const char * | name, |
| int64_t | value ) |
Get the value of a 64 bit signed attribute.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| time_t OdimH5v20::MetadataGroup::getTimeT | ( | const char * | name | ) |
Get the value of a 64 bit signed attribute converting it to time_t value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| time_t OdimH5v20::MetadataGroup::getTimeT | ( | const char * | name, |
| time_t | value ) |
Get the value of a 64 bit signed attribute converting it to time_t value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| value | the value to return if the attribute does not exists |
| OdimH5Exception | if an unexpected error occurs |
| float OdimH5v20::MetadataGroup::getFloat | ( | const char * | name | ) |
Get the value of a 64 bit floating point attribute converting it to 32 bit floating point value.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| float OdimH5v20::MetadataGroup::getFloat | ( | const char * | name, |
| float | value ) |
Get the value of a 64 bit floating point attribute converting it to 32 bit floating point value.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| double OdimH5v20::MetadataGroup::getDouble | ( | const char * | name | ) |
Get the value of a 64 bit floating point attribute.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| double OdimH5v20::MetadataGroup::getDouble | ( | const char * | name, |
| double | value ) |
Get the value of a 64 bit floating point attribute.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| std::string OdimH5v20::MetadataGroup::getStr | ( | const char * | name | ) |
Get the value of a string attribute.
| name | the attribute name |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if the attribue does not exists |
| std::string OdimH5v20::MetadataGroup::getStr | ( | const char * | name, |
| const std::string & | value ) |
Get the value of a string attribute.
| name | the attribute name |
| value | the default value to return if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| std::vector< bool > OdimH5v20::MetadataGroup::getBools | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to boolean values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| OdimH5Exception | if an unexpected error occurs |
| std::vector< char > OdimH5v20::MetadataGroup::getChars | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 8 bit signed values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| OdimH5Exception | if an unexpected error occurs |
| std::vector< unsigned char > OdimH5v20::MetadataGroup::getUChars | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 8 bit unsigned values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| OdimH5Exception | if an unexpected error occurs |
| std::vector< short > OdimH5v20::MetadataGroup::getShorts | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 16 bit signed values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| OdimH5Exception | if an unexpected error occurs |
| std::vector< unsigned short > OdimH5v20::MetadataGroup::getUShorts | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 16 bit unsigned values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| OdimH5Exception | if an unexpected error occurs |
| std::vector< int > OdimH5v20::MetadataGroup::getInts | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 32 bit signed values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< unsigned int > OdimH5v20::MetadataGroup::getUInts | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 32 bit unsigned values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< int64_t > OdimH5v20::MetadataGroup::getLongs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 64 bit signed values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< time_t > OdimH5v20::MetadataGroup::getTimes | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to time_t values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< float > OdimH5v20::MetadataGroup::getFloats | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 32 bit floating point values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< double > OdimH5v20::MetadataGroup::getDoubles | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 64 bit floating point values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< std::string > OdimH5v20::MetadataGroup::getStrings | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to string values.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< std::pair< short, short > > OdimH5v20::MetadataGroup::getShortPairs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 16 bit signed value pairs.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< std::pair< int, int > > OdimH5v20::MetadataGroup::getIntPairs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 32 bit signed value pairs.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< std::pair< int64_t, int64_t > > OdimH5v20::MetadataGroup::getLongPairs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 64 bit signed value pairs.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< std::pair< float, float > > OdimH5v20::MetadataGroup::getFloatPairs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 32 bit floating point value pairs.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< std::pair< double, double > > OdimH5v20::MetadataGroup::getDoublePairs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to 64 bit floating point value pairs.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| const std::vector< std::pair< std::string, std::string > > OdimH5v20::MetadataGroup::getStrPairs | ( | const char * | name, |
| bool | mandatory = false ) |
Get the value of a sequence attribute converting it to string pairs.
| name | the attribute name |
| mandatory | throw exception if attribute is not found |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< AZTimes > OdimH5v20::MetadataGroup::getAZTimes | ( | const char * | name | ) |
Get the value of a sequence attribute converting it to azimuth time pairs.
| name | the attribute to read |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< AZAngles > OdimH5v20::MetadataGroup::getAZAngles | ( | const char * | name | ) |
Get the value of a sequence attribute converting it to azimuth angle pairs.
| name | the attribute to read |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| VILHeights OdimH5v20::MetadataGroup::getVILHeights | ( | const char * | name | ) |
Get the value of a sequence attribute converting it to vertical height pairs.
| name | the attribute to read |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< Angles > OdimH5v20::MetadataGroup::getAngles | ( | const char * | name | ) |
Get the value of a sequence attribute converting it to elevation angle.
| name | the attribute to read |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< Arotation > OdimH5v20::MetadataGroup::getArotation | ( | const char * | name | ) |
Get the value of a sequence attribute converting it to antenna rotation speed.
| name | the attribute to read |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| std::vector< Nodes > OdimH5v20::MetadataGroup::getNodes | ( | const char * | name | ) |
Get the value of a sequence attribute converting it to radar nodes.
| name | the attribute to read |
| OdimH5Exception | if an unexpected error occurs |
| OdimH5MissingAttributeException | if mandatory is true and the attribue does not exists |
| OdimH5FormatException | if a conversion error occurred |
| void OdimH5v20::MetadataGroup::import | ( | MetadataGroup * | group | ) |
Copy/write all attributes from the given group to this group.
| group | the source group to copy from |
| OdimH5Exception | if an unexpected error occurs |
| void OdimH5v20::MetadataGroup::import | ( | MetadataGroup * | group, |
| const std::set< std::string > & | names ) |
Copy/write all given attributes from the given group to this group.
| group | the source group to copy from |
| names | attributes to copy |
| OdimH5Exception | if an unexpected error occurs |
| H5::Group * OdimH5v20::MetadataGroup::getH5Object | ( | ) | const |
Get a reference to the underneath HDF5 group object.
|
static |
Static method to write OdimH5 Conventions attribute into given group.
| OdimH5Exception | if an unexpected error occurs |
|
static |
Static method to read OdimH5 Conventions attribute from a given group.
| OdimH5Exception | if an unexpected error occurs |