radarlib  1.4.6
OdimH5v20::ModelVersion Class Reference

OdimH5 model version informations. More...

#include <radarlib/odimh5v20_support.hpp>

Public Member Functions

 ModelVersion (int maj, int min)
 Create and inizalize object fields with the indicated values. More...
 
 ModelVersion (const std::string &value)
 Create and inizalize object fields decoding the indicated string. More...
 
void parse (const std::string &val)
 Set object fields parsing an input string. More...
 
std::string toString () const
 Return a model version string formatted acording to OdimH5 specifications. More...
 

Detailed Description

OdimH5 model version informations.

This class represent a OdimH5 v2.0 model version It is used to read and write OdimObjects attribute "what.version" See OdimH5 v2.0 specification/page 10 for further informations

See also
OdimObject
Examples:
create_odim_object.cpp.

Constructor & Destructor Documentation

◆ ModelVersion() [1/2]

OdimH5v20::ModelVersion::ModelVersion ( int  maj,
int  min 
)

Create and inizalize object fields with the indicated values.

Parameters
majvalue for Major field
minvalue for Minor field

◆ ModelVersion() [2/2]

OdimH5v20::ModelVersion::ModelVersion ( const std::string &  value)

Create and inizalize object fields decoding the indicated string.

Parameters
valuea string formatted like "H5rad <MAJOR>.<MINOR>"
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

Member Function Documentation

◆ parse()

void OdimH5v20::ModelVersion::parse ( const std::string &  val)

Set object fields parsing an input string.

Parameters
vala string formatted like "H5rad <MAJOR>.<MINOR>"
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

◆ toString()

std::string OdimH5v20::ModelVersion::toString ( ) const

Return a model version string formatted acording to OdimH5 specifications.


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