radarlib 1.4.6
OdimH5v21::Arotation Class Reference

Arotation - Antenna Rotation Speed. More...

#include <radarlib/odimh5v21_support.hpp>

Public Member Functions

 Arotation ()
 Create an object with values set to 0. More...
 
 Arotation (double value)
 Create an object set to the value passed. More...
 
 Arotation (const std::string &value)
 Create an object set to the value passed. More...
 
void set (double value)
 Set field. More...
 
void parse (const std::string &str)
 Set object fields decoding the indicated string. More...
 
std::string toString () const
 Convert antenna rotation speed to a string formated according to OdimH5 specifications. More...
 
std::string toString (int precision) const
 Convert antenna rotation speed to a string formated according to OdimH5 specifications. More...
 

Static Public Member Functions

static std::vector< ArotationparseSequence (const std::string &str)
 Create a collection of antenna rotation speeds decoding a string. More...
 
static std::vector< ArotationparseSimpleArray (const std::vector< double > &value)
 Create a collection of antenna rotation speeds importing a vector of double. More...
 
static std::string toString (const std::vector< Arotation > &right)
 
static std::string toString (const std::vector< Arotation > &right, int precision)
 Convert a collection of antenna rotation speeds to a string formated according to OdimH5 specifications. More...
 

Public Attributes

double value
 Antenna rotation speed. More...
 

Detailed Description

Arotation - Antenna Rotation Speed.

This class represent the Antenna Rotation Speed

See also
Horizontal_Product_2D | Arotation

Constructor & Destructor Documentation

◆ Arotation() [1/3]

OdimH5v21::Arotation::Arotation ( )

Create an object with values set to 0.

◆ Arotation() [2/3]

OdimH5v21::Arotation::Arotation ( double  value)

Create an object set to the value passed.

Parameters
[in]valuea double value for the Antenna rotation speed

◆ Arotation() [3/3]

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

Create an object set to the value passed.

Parameters
[in]valuea string value for the antenna rotation speed

Member Function Documentation

◆ set()

void OdimH5v21::Arotation::set ( double  value)

Set field.

Parameters
valuevalue for antenna rotation speed

◆ parse()

void OdimH5v21::Arotation::parse ( const std::string &  str)

Set object fields decoding the indicated string.

Parameters
stra string formatted like "value"
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

◆ toString() [1/4]

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

Convert antenna rotation speed to a string formated according to OdimH5 specifications.

◆ toString() [2/4]

std::string OdimH5v21::Arotation::toString ( int  precision) const

Convert antenna rotation speed to a string formated according to OdimH5 specifications.

Parameters
precisionprecision to use when converting double values to strings

◆ parseSequence()

std::vector< Arotation > OdimH5v21::Arotation::parseSequence ( const std::string &  str)
static

Create a collection of antenna rotation speeds decoding a string.

Parameters
stra string formatted like "value,value,..."
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

◆ parseSimpleArray()

std::vector< Arotation > OdimH5v21::Arotation::parseSimpleArray ( const std::vector< double > &  value)
static

Create a collection of antenna rotation speeds importing a vector of double.

Parameters
valuea vector of double to be imported
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

◆ toString() [3/4]

std::string OdimH5v21::Arotation::toString ( const std::vector< Arotation > &  right)
static
Parameters
rightthe values to convert Convert a collection of antenna rotation speeds to a string formated according to OdimH5 specifications

◆ toString() [4/4]

std::string OdimH5v21::Arotation::toString ( const std::vector< Arotation > &  right,
int  precision 
)
static

Convert a collection of antenna rotation speeds to a string formated according to OdimH5 specifications.

Parameters
rightthe destination string
precisionprecision to use when converting double values to strings

Member Data Documentation

◆ value

double OdimH5v21::Arotation::value

Antenna rotation speed.


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