radarlib 1.4.6
OdimH5v21::SourceInfo Class Reference

OdimH5 object source informations. More...

#include <radarlib/odimh5v21_support.hpp>

Public Member Functions

 SourceInfo ()
 Create an empty source information object.
 
 SourceInfo (const std::string &value)
 Create and inizalize a source information decoding the indicated string.
 
void parse (const std::string value)
 Set object fields decoding the indicated string.
 
std::string toString () const
 Convert fields into a string formated acording to OdimH5 specifications.
 
SourceInfosetWMO (const std::string &value)
 Set WMO value and return a reference to this object.
 
SourceInfosetOperaRadarNode (const std::string &value)
 Set OperaRadarNode value and return a reference to this object.
 
SourceInfosetOperaRadarSite (const std::string &value)
 Set OperaRadarSite value and return a reference to this object.
 
SourceInfosetOriginatingCenter (int value)
 Set OriginatingCenter value and return a reference to this object.
 
SourceInfosetPlace (const std::string &value)
 Set Place value and return a reference to this object.
 
SourceInfosetCountry (int value)
 Set Country value and return a reference to this object.
 
SourceInfosetComment (const std::string &value)
 Set Comment value and return a reference to this object.
 

Public Attributes

std::string WMO
 Combined WMO block and station number in the form A1bwnnnnn, or 0 if none assigned.
 
std::string OperaRadarNode
 Radar node according to OPERA name table (see right column of Table 9 in OPERA v2.1 document)
 
std::string OperaRadarSite
 Radar site as indexed in the OPERA database.
 
int OriginatingCenter
 Originating centre.
 
std::string Place
 Place according to Table 9 of OdimH5 standard.
 
int Country
 Country according to BUFR tables 14 0 1 101.
 
std::string Comment
 Free comment.
 

Detailed Description

OdimH5 object source informations.

This class represent a OdimH5 object source info
For further details see OdimH5 v2.1 specifications/page 10

Remarks
From OdimH5 documentation is not clear a single type of subinformation can have multiple values, so we assume thet every sub info has only one value
See also
OdimObject

Constructor & Destructor Documentation

◆ SourceInfo() [1/2]

OdimH5v21::SourceInfo::SourceInfo ( )

Create an empty source information object.

◆ SourceInfo() [2/2]

OdimH5v21::SourceInfo::SourceInfo ( const std::string & value)

Create and inizalize a source information decoding the indicated string.

Parameters
valuea string formatted like "type:value,type:value,..."
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

Member Function Documentation

◆ parse()

void OdimH5v21::SourceInfo::parse ( const std::string value)

Set object fields decoding the indicated string.

Parameters
valuea string formatted like "type:value,type:value,..."
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

◆ toString()

std::string OdimH5v21::SourceInfo::toString ( ) const

Convert fields into a string formated acording to OdimH5 specifications.

◆ setWMO()

SourceInfo & OdimH5v21::SourceInfo::setWMO ( const std::string & value)

Set WMO value and return a reference to this object.

◆ setOperaRadarNode()

SourceInfo & OdimH5v21::SourceInfo::setOperaRadarNode ( const std::string & value)

Set OperaRadarNode value and return a reference to this object.

◆ setOperaRadarSite()

SourceInfo & OdimH5v21::SourceInfo::setOperaRadarSite ( const std::string & value)

Set OperaRadarSite value and return a reference to this object.

◆ setOriginatingCenter()

SourceInfo & OdimH5v21::SourceInfo::setOriginatingCenter ( int value)

Set OriginatingCenter value and return a reference to this object.

◆ setPlace()

SourceInfo & OdimH5v21::SourceInfo::setPlace ( const std::string & value)

Set Place value and return a reference to this object.

◆ setCountry()

SourceInfo & OdimH5v21::SourceInfo::setCountry ( int value)

Set Country value and return a reference to this object.

◆ setComment()

SourceInfo & OdimH5v21::SourceInfo::setComment ( const std::string & value)

Set Comment value and return a reference to this object.

Member Data Documentation

◆ WMO

std::string OdimH5v21::SourceInfo::WMO

Combined WMO block and station number in the form A1bwnnnnn, or 0 if none assigned.

◆ OperaRadarNode

std::string OdimH5v21::SourceInfo::OperaRadarNode

Radar node according to OPERA name table (see right column of Table 9 in OPERA v2.1 document)

◆ OperaRadarSite

std::string OdimH5v21::SourceInfo::OperaRadarSite

Radar site as indexed in the OPERA database.

◆ OriginatingCenter

int OdimH5v21::SourceInfo::OriginatingCenter

Originating centre.

◆ Place

std::string OdimH5v21::SourceInfo::Place

Place according to Table 9 of OdimH5 standard.

◆ Country

int OdimH5v21::SourceInfo::Country

Country according to BUFR tables 14 0 1 101.

◆ Comment

std::string OdimH5v21::SourceInfo::Comment

Free comment.


The documentation for this class was generated from the following files: